Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2007 06:01:01 +0000 (UTC)
From:      David Xu <davidxu@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libthr/thread thr_sem.c
Message-ID:  <200711210601.lAL611hM096036@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711210601.lAL611hM096036>