Date: Thu, 15 May 2003 10:56:18 -0700 (PDT) From: Mike Makonnen <mtm@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libthr/thread thr_cancel.c Message-ID: <200305151756.h4FHuIB4056126@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305151756.h4FHuIB4056126>