cvs commit: src/lib/libpthread/thread thr_create.c thr_private.h thr_rwlock.c

Daniel Eischen deischen at FreeBSD.org
Thu Jan 8 07:37:13 PST 2004


deischen    2004/01/08 07:37:09 PST

  FreeBSD src repository

  Modified files:
    lib/libpthread/thread thr_create.c thr_private.h thr_rwlock.c 
  Log:
  Add a simple work-around for deadlocking on recursive read locks
  on a rwlock while there are writers waiting.  We normally favor
  writers but when a reader already has at least one other read lock,
  we favor the reader.  We don't track all the rwlocks owned by a
  thread, nor all the threads that own a rwlock -- we just keep
  a count of all the read locks owned by a thread.
  
  PR:     24641
  
  Revision  Changes    Path
  1.53      +1 -0      src/lib/libpthread/thread/thr_create.c
  1.112     +4 -1      src/lib/libpthread/thread/thr_private.h
  1.14      +81 -47    src/lib/libpthread/thread/thr_rwlock.c


More information about the cvs-all mailing list