
3 Sep
2005
3 Sep
'05
6:02 p.m.
On 03/09/05, Alexander Terekhov <terekhov@web.de> wrote:
John Maddock wrote: [...]
* No need to do anything different on CE, or use stringstream etc. ^^
I think that especially on CE, you'd really want to use a lock (on slow path) and never busy-wait... priority inversions, y'know.
Doesn't that just move the race to the lock? One trick might to create a locked mutex in the once state initialization and unlock when initialised. Waiting threads can block on the locked mutex. Or use a condition var...?? matt.