
1 Jan
2012
1 Jan
'12
7:56 a.m.
On Saturday, December 31, 2011 18:20:54 Beman Dawes wrote:
On Sat, Dec 31, 2011 at 4:00 AM, Andrey Semashev
That really shouldn't be necessary. Also, I'm trying to hold down dependencies on other libraries, or anything that is C++11 only.
Call once mechanism is easy to implement on top of pthread_call_once and atomic_count (or only atomic_count, if we rely on the fact that namespace- scope dynamic initializations are thread-safe). That won't introduce any dependencies except for pthreads, which you depend on already I assume.