cvs commit: src/lib/libpthread/thread thr_cond.c thr_create.c thr_init.c thr_kern.c thr_private.h

Daniel Eischen deischen at FreeBSD.org
Tue Apr 22 13:28:34 PDT 2003


deischen    2003/04/22 13:28:33 PDT

  FreeBSD src repository

  Modified files:
    lib/libpthread/thread thr_cond.c thr_create.c thr_init.c 
                          thr_kern.c thr_private.h 
  Log:
  Add a couple asserts to pthread_cond_foo to ensure the (low-level)
  lock level is 0.  Thus far, the threads implementation doesn't use
  mutexes or condition variables so the lock level should be 0.
  
  Save the return value when trying to schedule a new thread and
  use this to return an error from pthread_create().
  
  Change the max sleep time for an idle KSE to 1 minute from 2 minutes.
  
  Maintain a count of the number of KSEs within a KSEG.
  
  With these changes scope system threads seem to work, but heavy
  use of them crash the kernel (supposedly VM bugs).
  
  Revision  Changes    Path
  1.37      +6 -0      src/lib/libpthread/thread/thr_cond.c
  1.41      +15 -1     src/lib/libpthread/thread/thr_create.c
  1.49      +3 -0      src/lib/libpthread/thread/thr_init.c
  1.56      +45 -19    src/lib/libpthread/thread/thr_kern.c
  1.82      +3 -1      src/lib/libpthread/thread/thr_private.h


More information about the cvs-src mailing list