davidxu 2008-03-11 03:26:47 UTC
FreeBSD src repository
Modified files:
lib/libthr/threadthr_sem.c
Log:
If a thread is cancelled, it may have already consumed a umtx_wake,
check waiter and semphore counter to see if we may wake up next thread.
Revision ChangesPath
davidxu 2008-01-07 02:26:29 UTC
FreeBSD src repository
Modified files:
lib/libthr/threadthr_sem.c
Log:
sem_post() requires to return -1 on error.
Revision ChangesPath
1.13 +2 -2 src/lib/libthr/thread/thr_sem.c
davidxu 2007-11-23 05:42:52 UTC
FreeBSD src repository
Modified files:
lib/libthr/threadthr_sem.c
Log:
Simplify code, fix a thread cancellation bug in sem_wait and sem_timedwait.
Revision ChangesPath
1.12 +15 -21src/lib/libthr/thread/thr_sem.c
___
davidxu 2007-11-21 06:01:01 UTC
FreeBSD src repository
Modified files:
lib/libthr/threadthr_sem.c
Log:
Reuse nwaiter member field to record number of waiters, in sem_post(),
this should reduce the chance having to do a syscall when there is no
waiter in the semaphore.
des 2006-03-28 21:46:55 UTC
FreeBSD src repository
Modified files:
lib/libthr/threadthr_sem.c
Log:
Fix prototype mismatch.
Revision ChangesPath
1.7 +2 -1 src/lib/libthr/thread/thr_sem.c
___
cvs-all@freebsd