Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2001-09-25 10:43:16

> This has an even subtler bug. (IMO - I'm not an expert at threading!) No
> mutex protects pm, so according to POSIX memory visibility rules a thread
> can pass through call_once, see that another thread has already executed
> m_once, and fetch the old value of pm, i.e. zero.
> Comments? Is the flaw in Boost.Threads or in my limited understanding?


Boost list run by bdawes at, gregod at, cpdaniel at, john at