$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: John Maddock (john_at_[hidden])
Date: 2005-09-13 11:29:12
> Calls through call_once are only atomic with respect to other calls that
> reference the same once_flag. If you want mutual exclusion, you need a
> shared
> mutex --- why not just create a function-local static mutex, lock it
> before
> your function call, and unlock it afterwards?
I hope not! There will be a race condition in the construction of the
function-scope static mutex.
John.