From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: Code review for thread safeness Date: Tue, 08 Mar 2005 09:36:09 +1100 Message-ID: <87fyz75bja.fsf@zip.com.au> References: <87wtsjw1ro.fsf@zagadka.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110234862 19126 80.91.229.2 (7 Mar 2005 22:34:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2005 22:34:22 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Mar 07 23:34:21 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D8QnH-0002jP-MI for guile-devel@m.gmane.org; Mon, 07 Mar 2005 23:33:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D8R78-0008W8-1w for guile-devel@m.gmane.org; Mon, 07 Mar 2005 17:54:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D8R6V-0008JF-Os for guile-devel@gnu.org; Mon, 07 Mar 2005 17:53:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D8R6I-0008CJ-Ru for guile-devel@gnu.org; Mon, 07 Mar 2005 17:53:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D8R6I-0008Bk-MO for guile-devel@gnu.org; Mon, 07 Mar 2005 17:53:22 -0500 Original-Received: from [61.8.0.84] (helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D8Qpq-0000Wl-Vt for guile-devel@gnu.org; Mon, 07 Mar 2005 17:36:23 -0500 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout1.pacific.net.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id j27MaHA6029516; Tue, 8 Mar 2005 09:36:17 +1100 Original-Received: from localhost (ppp2337.dyn.pacific.net.au [61.8.35.55]) by mailproxy2.pacific.net.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id j27MaGMp011459; Tue, 8 Mar 2005 09:36:16 +1100 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1D8Qpd-00020Q-00; Tue, 08 Mar 2005 09:36:09 +1100 Original-To: Marius Vollmer Mail-Copies-To: never In-Reply-To: <87wtsjw1ro.fsf@zagadka.de> (Marius Vollmer's message of "Mon, 07 Mar 2005 23:04:59 +0100") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org X-MailScanner-To: guile-devel@m.gmane.org Xref: news.gmane.org gmane.lisp.guile.devel:4822 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4822 Marius Vollmer writes: > > If there might be non-local exits, scm_frame_critical_section can be > used instead. If an error occurs and a lazy-catch executes, is the mutex unlocked for that handler? > Also, there are probably many more places that need to become critical > sections. We need to find them and use SCM_CRITICAL_SECTION_START/END > or scm_frame_critical_section, as appropriate. The ones I've spotted are (I might have posted this before), gethostbyname getpwuid setpwent (etc) getgrgid setgrent (etc) setlocale scm_mem2symbol or scm_i_mem2symbol or whatever it is now. I probably won't get a chance to actually do anything about these. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel