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

David Xu davidxu at FreeBSD.org
Tue Nov 20 22:01:02 PST 2007


davidxu     2007-11-21 06:01:01 UTC

  FreeBSD src repository

  Modified files:
    lib/libthr/thread    thr_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.
  
  Revision  Changes    Path
  1.11      +31 -7     src/lib/libthr/thread/thr_sem.c


More information about the cvs-src mailing list