freebsd-dev/lib/libkse
Daniel Eischen 1cb570c531 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
..
arch/i386 Move the mailbox to the beginning of the thread and align the 2003-04-30 15:05:17 +00:00
sys Change low-level locking a bit so that we can tell if 2003-05-24 02:29:25 +00:00
test For now, build and install this as libkse instead of libpthread. 2002-12-08 22:43:31 +00:00
thread Change low-level locking a bit so that we can tell if 2003-05-24 02:29:25 +00:00
Makefile Remove the %gs restoring hack (already commented out). 2003-04-25 01:31:56 +00:00