cvs commit: src/lib/libpthread/sys lock.c lock.h src/lib/libpthread/thread thr_cancel.c thr_concurrency.c thr_cond.c thr_create.c thr_detach.c thr_find_thread.c thr_join.c thr_kern.c thr_nanosleep.c thr_sig.c

Daniel Eischen deischen at FreeBSD.org
Fri May 23 19:29:28 PDT 2003


deischen    2003/05/23 19:29:26 PDT

  FreeBSD src repository

  Modified files:
    lib/libpthread/sys   lock.c lock.h 
    lib/libpthread/thread thr_cancel.c thr_concurrency.c 
                          thr_cond.c thr_create.c thr_detach.c 
                          thr_find_thread.c thr_join.c thr_kern.c 
                          thr_nanosleep.c thr_sig.c 
  Log:
  Change low-level locking a bit so that we can tell if
  a lock is being waitied on.
  
  Fix a races in join and cancellation.
  
  When trying to wait on a CV and the library is not yet
  threaded, make it threaded so that waiting actually works.
  
  When trying to nanosleep() and we're not threaded, just
  call the system call nanosleep instead of adding the thread
  to the wait queue.
  
  Clean up adding/removing new threads to the "all threads queue",
  assigning them unique ids, and tracking how many active threads
  there are.  Do it all when the thread is added to the scheduling
  queue instead of making pthread_create() know how to do it.
  
  Fix a race where a thread could be marked for signal delivery
  but it could be exited before we actually add the signal to it.
  
  Other minor cleanups and bug fixes.
  
  Submitted by:   davidxu
  Approved by:    re@ (blanket for libpthread)
  
  Revision  Changes    Path
  1.5       +33 -21    src/lib/libpthread/sys/lock.c
  1.5       +1 -2      src/lib/libpthread/sys/lock.h
  1.21      +20 -0     src/lib/libpthread/thread/thr_cancel.c
  1.3       +1 -0      src/lib/libpthread/thread/thr_concurrency.c
  1.42      +6 -0      src/lib/libpthread/thread/thr_cond.c
  1.45      +9 -24     src/lib/libpthread/thread/thr_create.c
  1.22      +4 -4      src/lib/libpthread/thread/thr_detach.c
  1.12      +12 -6     src/lib/libpthread/thread/thr_find_thread.c
  1.26      +11 -0     src/lib/libpthread/thread/thr_join.c
  1.67      +175 -92   src/lib/libpthread/thread/thr_kern.c
  1.21      +3 -0      src/lib/libpthread/thread/thr_nanosleep.c
  1.51      +22 -8     src/lib/libpthread/thread/thr_sig.c


More information about the cvs-src mailing list