summaryrefslogtreecommitdiff
path: root/lib/libpthread/pthread_misc.c
AgeCommit message (Collapse)Author
2020-01-29Check thread->pt_magic with PT_MAGIC promptlykamil
2020-01-13Rip out some very ambitious optimisations around pthread_mutex that aread
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.
2013-03-21- Allow libpthread to be dlopened again, by providing libc stubs to libpthread.christos
- 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
2009-08-12Make nanosleep cancelable again.enami
2009-01-11merge christos-time_tchristos
2008-12-29revert previous. It was meant for the branchchristos
2008-12-28adjust for time_t 64christos
2008-06-28Shut lint up.ad
2008-06-24pthread_kill, pthread_sigmask: return errno, not the return from the systemad
call. Found by VSTHlite.
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-02-10- Remove libpthread's atomic ops.ad
- Remove the old spinlock-based mutex and rwlock implementations. - Use the atomic ops from libc.
2008-02-09update for _sched_{get,set}param changes. from rmind@.yamt
2008-01-26sched_setparam: fix the case when incorrect (according to the class)rmind
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;
2008-01-15Implementation of processor-sets, affinity and POSIX real-time extensions.rmind
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>.
2007-11-13Mutexes:ad
- 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.
2007-08-16Trim fat off libpthread internal spinlock operations. Makes a mesurablead
improvement across the board.
2007-03-02Remove the PTHREAD_SA option. If M:N threads is reimplemented it'sad
better off done with a seperate library.