cvs commit: src/lib/libthr/thread thr_kern.c thr_private.h

Mike Makonnen mtm at FreeBSD.org
Sun Jun 29 14:21:53 PDT 2003


mtm         2003/06/29 14:21:52 PDT

  FreeBSD src repository

  Modified files:
    lib/libthr/thread    thr_kern.c thr_private.h 
  Log:
  In a critical section, separate the aquisition of the thread lock
  and the disabling of signals. What we are really interested in is
  keeping track of recursive disabling of signals. We should not
  be recursively acquiring thread locks. Any such situations should
  be reorganized to not require a recursive lock.
  
  Separating the two out also allows us to block signals independent of
  acquiring thread locks. This will be needed in libthr in the near future when
  we put the pieces together to protect libc functions that use pthread mutexes
  and low level locks.
  
  Revision  Changes    Path
  1.10      +24 -16    src/lib/libthr/thread/thr_kern.c
  1.18      +3 -1      src/lib/libthr/thread/thr_private.h


More information about the cvs-src mailing list