From owner-cvs-src@FreeBSD.ORG Thu May 15 10:56:19 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D8AA37B401; Thu, 15 May 2003 10:56:19 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 242F943F3F; Thu, 15 May 2003 10:56:19 -0700 (PDT) (envelope-from mtm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4FHuI0U056127; Thu, 15 May 2003 10:56:18 -0700 (PDT) (envelope-from mtm@repoman.freebsd.org) Received: (from mtm@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4FHuIB4056126; Thu, 15 May 2003 10:56:18 -0700 (PDT) Message-Id: <200305151756.h4FHuIB4056126@repoman.freebsd.org> From: Mike Makonnen Date: Thu, 15 May 2003 10:56:18 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libthr/thread thr_cancel.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2003 17:56:20 -0000 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