[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text collation

From: Kevin Ryde
Subject: Re: Text collation
Date: Sat, 16 Dec 2006 07:52:07 +1100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

address@hidden (Ludovic Courtès) 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]