cvs commit: src/lib/libthr/thread thr_mutex.c thr_umtx.h

David Xu davidxu at FreeBSD.org
Thu Dec 14 05:22:04 PST 2006


davidxu     2006-12-14 13:22:02 UTC

  FreeBSD src repository

  Modified files:
    lib/libthr/thread    thr_mutex.c thr_umtx.h 
  Log:
  Create inline function _thr_umutex_trylock2 to only try one atomic
  operation, if it is failed, we call syscall directly, this saves
  one atomic operation per lock contention.
  
  Revision  Changes    Path
  1.49      +3 -3      src/lib/libthr/thread/thr_mutex.c
  1.9       +8 -0      src/lib/libthr/thread/thr_umtx.h


More information about the cvs-src mailing list