]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
o Make the setting/checking of cancel state atomic with
authormtm <mtm@FreeBSD.org>
Thu, 15 May 2003 17:56:18 +0000 (17:56 +0000)
committermtm <mtm@FreeBSD.org>
Thu, 15 May 2003 17:56:18 +0000 (17:56 +0000)
commit1e5c97a86ef725631a92a19919f6ba2ed95c6aac
tree2a578d3076bd379aa00aad6d3fedcddeb397f7b9
parent73765b9ed229b9989a9957e2459ee0b1b9fa9c56
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
lib/libthr/thread/thr_cancel.c