freebsd-skq/lib/libkse/sys
deischen dc5114efb5 Change low-level locking a bit so that we can tell if
a lock is being waitied on.

Fix a races in join and cancellation.

When trying to wait on a CV and the library is not yet
threaded, make it threaded so that waiting actually works.

When trying to nanosleep() and we're not threaded, just
call the system call nanosleep instead of adding the thread
to the wait queue.

Clean up adding/removing new threads to the "all threads queue",
assigning them unique ids, and tracking how many active threads
there are.  Do it all when the thread is added to the scheduling
queue instead of making pthread_create() know how to do it.

Fix a race where a thread could be marked for signal delivery
but it could be exited before we actually add the signal to it.

Other minor cleanups and bug fixes.

Submitted by:	davidxu
Approved by:	re@ (blanket for libpthread)
2003-05-24 02:29:25 +00:00
..
lock.c Change low-level locking a bit so that we can tell if 2003-05-24 02:29:25 +00:00
lock.h Change low-level locking a bit so that we can tell if 2003-05-24 02:29:25 +00:00
Makefile.inc Add FIFO queueing locking operations based on atomic swap. 2003-04-18 05:02:39 +00:00
thr_error.c Protect thread errno from being changed while operating 2003-04-23 21:46:50 +00:00