cvs commit: src/lib/libthr/thread thr_cancel.c

Mike Makonnen mtm at FreeBSD.org
Thu May 15 10:56:20 PDT 2003


mtm         2003/05/15 10:56:18 PDT

  FreeBSD src repository

  Modified files:
    lib/libthr/thread    thr_cancel.c 
  Log:
  o Make the setting/checking of cancel state atomic with
    respect to other threads and signal handlers by moving to
    the _thread_critical_enter/exit functions.
  
  o Introduce an static function, testcancel(), that is used by
    the other functions in this module. This allows it to make
    locking assumptions that the top-level functions can't.
  
  o Rework the code flow a bit to reduce indentation levels.
  
  Approved by:    markm/mentor, re/blanket libthr
  Reviewed by:    jeff
  
  Revision  Changes    Path
  1.3       +111 -87   src/lib/libthr/thread/thr_cancel.c


More information about the cvs-src mailing list