cvs commit: src/lib/libthr/thread thr_sem.c

2008-03-10 Thread David Xu
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

cvs commit: src/lib/libthr/thread thr_sem.c

2008-01-06 Thread David Xu
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

cvs commit: src/lib/libthr/thread thr_sem.c

2007-11-22 Thread David Xu
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 ___

cvs commit: src/lib/libthr/thread thr_sem.c

2007-11-20 Thread David Xu
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.

cvs commit: src/lib/libthr/thread thr_sem.c

2006-03-28 Thread Dag-Erling Smorgrav
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