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: Text collation Date: Sat, 16 Dec 2006 07:52:07 +1100 Message-ID: <87vekcg9vs.fsf@zip.com.au> References: <877j00cirs.fsf@laas.fr> <87hcz3mqhr.fsf@zip.com.au> <87r6x0qjyy.fsf@laas.fr> <87fyc1df70.fsf@zip.com.au> <87odqcszlj.fsf@chbouib.org> <87ejr6hxm1.fsf@zip.com.au> <878xhd33x3.fsf@laas.fr> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1166215967 11935 80.91.229.10 (15 Dec 2006 20:52:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Dec 2006 20:52:47 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Dec 15 21:52:45 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GvK2r-0006XV-Bt for guile-devel@m.gmane.org; Fri, 15 Dec 2006 21:52:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvK2q-0003tA-TS for guile-devel@m.gmane.org; Fri, 15 Dec 2006 15:52:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GvK2X-0003g2-BQ for guile-devel@gnu.org; Fri, 15 Dec 2006 15:52:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GvK2T-0003eQ-Qe for guile-devel@gnu.org; Fri, 15 Dec 2006 15:52:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvK2T-0003eL-JV for guile-devel@gnu.org; Fri, 15 Dec 2006 15:52:17 -0500 Original-Received: from [61.8.2.231] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GvK2T-0002pv-FJ for guile-devel@gnu.org; Fri, 15 Dec 2006 15:52:17 -0500 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id C401C109A0F for ; Sat, 16 Dec 2006 07:52:08 +1100 (EST) Original-Received: from localhost (ppp246D.dyn.pacific.net.au [61.8.36.109]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 69E878C08 for ; Sat, 16 Dec 2006 07:52:09 +1100 (EST) Original-Received: from gg by localhost with local (Exim 4.63) (envelope-from ) id 1GvK2J-0002b6-GC for guile-devel@gnu.org; Sat, 16 Dec 2006 07:52:07 +1100 Original-To: guile-devel@gnu.org Mail-Copies-To: never In-Reply-To: <878xhd33x3.fsf@laas.fr> (Ludovic =?iso-8859-1?Q?Court=E8s's?= message of "Tue, 12 Dec 2006 09:38:00 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (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 Xref: news.gmane.org gmane.lisp.guile.devel:6343 Archived-At: ludovic.courtes@laas.fr (Ludovic Court=E8s) writes: > > mutex If you want to think about mutexes, the timezone swapping in stime.c could stand some attention. When changing the "environ" global variable it uses the old SCM_CRITICAL_SECTION_START business, which is a secret mutex. It, and probably your locale bits, should expose something so C code (including wrappers around external libraries) can lock down afflicted bits when necessary. There's no need for a separate mutex for each thing. When an operation like time conversion or locale query is fast then no important parallelism is lost by sharing. And if you've got multiple mutexes that might be acquired all at once then you have to think about the sequence to do that in, otherwise there's risk of a deadly embrace. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel