freebsd-nq/lib/libpthread
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 Eek, staticize a couple of functions that shouldn't 2003-05-19 23:04:50 +00:00
man MFlibc_r: add and document pthread_attr_get_np() function. 2003-03-03 22:40:20 +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