CVS log for src/lib/libpthread/pthread_misc.c
Up to [cvs.NetBSD.org] / src / lib / libpthread
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Apr 10 10:38:33 2022 UTC (2 years, 8 months ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
HEAD
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3
lines
pthread: Nix trailing whitespace.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Feb 12 14:59:32 2022 UTC (2 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +5 -2
lines
libpthread: Move namespacing include to top of .c files.
Stuff like libc's namespace.h, or atomic_op_namespace.h, which does
namespacing tricks like `#define atomic_cas_uint _atomic_cas_uint',
has to go at the top of each .c file. If it goes in the middle, it
might be too late to affect the declarations, and result in compile
errors.
I tripped over this by including <sys/atomic.h> in mips
<machine/lock.h>.
(Maybe we should create a new pthread_namespace.h file for the
purpose, but this'll do for now.)
Revision 1.15.30.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:15 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +21 -14
lines
Merge changes from current as of 20200406
Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Jan 29 16:34:09 2020 UTC (4 years, 10 months ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +20 -2
lines
Check thread->pt_magic with PT_MAGIC promptly
Revision 1.15.32.1: download - view: text, markup, annotated - select for diffs
Sun Jan 26 10:55:16 2020 UTC (4 years, 10 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +3 -14
lines
Pull up following revision(s) (requested by ad in ticket #647):
lib/libpthread/pthread_rwlock.c: revision 1.37 (patch)
lib/libpthread/pthread_misc.c: revision 1.16
lib/libpthread/pthread.c: revision 1.154
lib/libpthread/pthread_int.h: revision 1.98
lib/libpthread/pthread_cond.c: revision 1.66
lib/libpthread/pthread_mutex.c: revision 1.66
Rip out some very ambitious optimisations around pthread_mutex that are
don't buy much. This stuff is hard enough to get right in the kernel let
alone userspace, and I don't trust that it's right.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Jan 13 18:22:56 2020 UTC (4 years, 11 months ago) by ad
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -14
lines
Rip out some very ambitious optimisations around pthread_mutex that are
don't buy much. This stuff is hard enough to get right in the kernel let
alone userspace, and I don't trust that it's right.
Revision 1.14.6.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:36:59 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +6 -3
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.14.12.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:21:08 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +6 -3
lines
resync from head
Revision 1.14.8.1: download - view: text, markup, annotated - select for diffs
Mon Apr 29 01:50:18 2013 UTC (11 years, 7 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +6 -3
lines
Pull up following revision(s) (requested by manu in ticket #869):
lib/libpthread/pthread_rwlock.c: revision 1.33
lib/libc/include/reentrant.h: revision 1.16
lib/libpthread/pthread_cond.c: revision 1.59
lib/libpthread/pthread_misc.c: revision 1.15
lib/libc/thread-stub/thread-stub.c: revision 1.23
lib/libpthread/pthread_cancelstub.c: revision 1.38
lib/libpthread/pthread_specific.c: revision 1.26
lib/libpthread/pthread_mutex.c: revision 1.56
lib/libpthread/pthread_tsd.c: revision 1.11
lib/libpthread/Makefile: revision 1.80
lib/libpthread/pthread.c: revision 1.143
lib/libpthread/pthread_int.h: revision 1.89
- Allow libpthread to be dlopened again, by providing libc stubs to
libpthread.
- Fail if the dlopened libpthread does pthread_create(). From manu@
- Discussed at length in the mailing lists; approved by core@
- This was chosen as the least intrusive patch that will provide
the necessary functionality.
XXX: pullup to 6
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Mar 21 16:49:12 2013 UTC (11 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-9-base,
netbsd-9-0-RC1,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan,
agc-symver-base,
agc-symver
Branch point for: phil-wifi,
netbsd-9
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -3
lines
- Allow libpthread to be dlopened again, by providing libc stubs to libpthread.
- Fail if the dlopened libpthread does pthread_create(). From manu@
- Discussed at length in the mailing lists; approved by core@
- This was chosen as the least intrusive patch that will provide
the necessary functionality.
XXX: pullup to 6
Revision 1.10.8.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 05:28:11 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-k15
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +2 -17
lines
sync to netbsd-5
Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 5 12:51:09 2009 UTC (15 years, 3 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
matt-nb5-pq3-base,
matt-nb5-pq3
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +2 -17
lines
Pull up following revision(s) (requested by enami in ticket #921):
lib/libpthread/pthread_misc.c: revision 1.14 via patch
lib/libpthread/pthread_cancelstub.c: revision 1.27 via patch
Make nanosleep cancelable again.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Aug 12 23:51:23 2009 UTC (15 years, 4 months ago) by enami
Branches: MAIN
CVS tags: yamt-pagecache-tag8,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
matt-premerge-20091211,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
matt-mips64-premerge-20101231,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-pagecache,
tls-maxphys,
netbsd-6
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -17
lines
Make nanosleep cancelable again.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jan 11 02:46:48 2009 UTC (15 years, 11 months ago) by christos
Branches: MAIN
CVS tags: jym-xensuspend-nbase,
jym-xensuspend-base,
jym-xensuspend
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +6 -6
lines
merge christos-time_t
Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Mon Dec 29 15:10:58 2008 UTC (15 years, 11 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.12.2.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.1: +182 -0
lines
commit changes to the right branch.
Revision 1.12.2.1
Mon Dec 29 15:08:04 2008 UTC (15 years, 11 months ago) by christos
Branches: christos-time_t
FILE REMOVED
Changes since revision 1.12: +0 -182
lines
file pthread_misc.c was added on branch christos-time_t on 2008-12-29 15:10:58 +0000
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Dec 29 15:08:04 2008 UTC (15 years, 11 months ago) by christos
Branches: MAIN
CVS tags: christos-time_t-nbase,
christos-time_t-base
Branch point for: christos-time_t
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4
lines
revert previous. It was meant for the branch
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Dec 28 21:33:35 2008 UTC (15 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +6 -6
lines
adjust for time_t 64
Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:39:24 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +10 -5
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Jun 28 16:50:43 2008 UTC (16 years, 5 months ago) by ad
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
netbsd-5-base,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20091211,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2
Branch point for: netbsd-5,
matt-nb5-mips64
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -2
lines
Shut lint up.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Jun 24 13:45:07 2008 UTC (16 years, 5 months ago) by ad
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +8 -5
lines
pthread_kill, pthread_sigmask: return errno, not the return from the system
call. Found by VSTHlite.
Revision 1.7.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:30:40 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +2 -9
lines
sync with head.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:01 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 00:40:28 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.1: +68 -17
lines
sync with HEAD
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Feb 10 18:50:54 2008 UTC (16 years, 10 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
matt-armv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base
Branch point for: yamt-pf42
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -5
lines
- Remove libpthread's atomic ops.
- Remove the old spinlock-based mutex and rwlock implementations.
- Use the atomic ops from libc.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Feb 9 17:07:54 2008 UTC (16 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +5 -8
lines
update for _sched_{get,set}param changes. from rmind@.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jan 26 17:55:30 2008 UTC (16 years, 10 months ago) by rmind
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +23 -11
lines
sched_setparam: fix the case when incorrect (according to the class)
in-kernel priority is used. Reported by <drochner>.
Minor fixes for scheduling calls to conform the POSIX:
- If pid is equal to zero, use the calling process;
- In case of permission problem, return EPERM instead of EACESS;
- sched_setscheduler() should return previously used policy;
- pthread_* calls should return the error code or zero;
Should fix the namespace problems (and builds of some packages):
- Move cpuset_t defintion from pset.h to sched.h;
- Remove the #include of pset.h in pthread.h;
Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Jan 15 03:37:14 2008 UTC (16 years, 11 months ago) by rmind
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +59 -16
lines
Implementation of processor-sets, affinity and POSIX real-time extensions.
Add schedctl(8) - a program to control scheduling of processes and threads.
Notes:
- This is supported only by SCHED_M2;
- Migration of LWP mechanism will be revisited;
Proposed on: <tech-kern>. Reviewed by: <ad>.
Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:36:37 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +25 -3
lines
sync with HEAD
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Nov 13 17:20:09 2007 UTC (17 years, 1 month ago) by ad
Branches: MAIN
CVS tags: matt-armv6-base,
cube-autoconf-base,
cube-autoconf
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +25 -3
lines
Mutexes:
- Play scrooge again and chop more cycles off acquire/release.
- Spin while the lock holder is running on another CPU (adaptive mutexes).
- Do non-atomic release.
Threadreg:
- Add the necessary hooks to use a thread register.
- Add the code for i386, using %gs.
- Leave i386 code disabled until xen and COMPAT_NETBSD32 have the changes.
Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:14:15 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +3 -6
lines
Sync with HEAD.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Aug 16 13:54:17 2007 UTC (17 years, 4 months ago) by ad
Branches: MAIN
CVS tags: nick-csl-alignment-base5,
nick-csl-alignment-base4,
nick-csl-alignment-base3,
matt-armv6-prevmlocking
Branch point for: matt-armv6
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -6
lines
Trim fat off libpthread internal spinlock operations. Makes a mesurable
improvement across the board.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Mar 2 18:53:52 2007 UTC (17 years, 9 months ago) by ad
Branches: MAIN
CVS tags: nick-csl-alignment-base2,
nick-csl-alignment-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: nick-csl-alignment
Remove the PTHREAD_SA option. If M:N threads is reimplemented it's
better off done with a seperate library.
CVSweb <webmaster@jp.NetBSD.org>