[Mongrel] [ANN] fastthread 0.6.1
Zed A. Shaw
zedshaw at zedshaw.com
Sun Dec 31 08:26:24 EST 2006
On Sun, 31 Dec 2006 02:04:32 -0500
MenTaLguY <mental at rydia.net> wrote:
> I just realized -- if fastthread can be included while Mutex-using code
> is already running, then the definition and replacement of the classes
> needs to happen atomically. Otherwise, it creates a race condition
> where a thread can e.g. end up seeing an incompletely defined Mutex
> class or none at all.
> fastthread 0.6.1 addresses this by defining the classes and then
> atomically swapping the constant definitions as a final step.
Very nice mental, I'll push out new gems for unix and win32 later today.
Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.awprofessional.com/title/0321483502 -- The Mongrel Book
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
More information about the Mongrel-users