cvs commit: src/include pthread_np.h src/lib/libthr/thread thr_mutex.c thr_private.h src/lib/libthr pthread.map

David Xu davidxu at FreeBSD.org
Thu Dec 13 22:25:57 PST 2007


davidxu     2007-12-14 06:25:57 UTC

  FreeBSD src repository

  Modified files:
    include              pthread_np.h 
    lib/libthr/thread    thr_mutex.c thr_private.h 
    lib/libthr           pthread.map 
  Log:
  1. Add function pthread_mutex_setspinloops_np to turn a mutex's spin
     loop count.
  2. Add function pthread_mutex_setyieldloops_np to turn a mutex's yield
     loop count.
  3. Make environment variables PTHREAD_SPINLOOPS and PTHREAD_YIELDLOOPS
     to be only used for turnning PTHREAD_MUTEX_ADAPTIVE_NP mutex.
  
  Revision  Changes    Path
  1.18      +4 -0      src/include/pthread_np.h
  1.20      +8 -0      src/lib/libthr/pthread.map
  1.65      +104 -29   src/lib/libthr/thread/thr_mutex.c
  1.81      +2 -0      src/lib/libthr/thread/thr_private.h


More information about the cvs-src mailing list