cvs commit: src/lib/libthr/thread thr_cond.c thr_umtx.c

David Xu davidxu at FreeBSD.org
Mon Dec 11 19:08:50 PST 2006


davidxu     2006-12-12 03:08:49 UTC

  FreeBSD src repository

  Modified files:
    lib/libthr/thread    thr_cond.c thr_umtx.c 
  Log:
  Move checking for c_has_waiters into low level _thr_ucond_signal and
  _thr_ucond_broadcast, clear condition variable pointer in cancellation
  info after returing from _thr_ucond_wait, since kernel has already
  dropped the internal lock, so we don't need to unlock it in cancellation
  handler again.
  
  Revision  Changes    Path
  1.23      +8 -16     src/lib/libthr/thread/thr_cond.c
  1.9       +4 -0      src/lib/libthr/thread/thr_umtx.c


More information about the cvs-all mailing list