
Hello Anthony, Tuesday, August 28, 2007, 12:17:45 PM, you wrote:
"Peter Dimov" <pdimov@pdimov.com> writes:
Hasn't Anthony Williams already implemented a header-only call_once? I'm not sure I see a reason to reinvent that particular wheel. Once boost::mutex is made header-only, there'd be no need for lightweight_mutex either and I'll be able to retire it as well.
I have implemented a header-only call_once for Windows --- on the thread_rewrite branch in SVN. I plan to get to pthreads sometime in the near future.
The win32 implementation of mutex is also header-only, and I plan to add a header-only pthreads implementation too.
Would you be interested to take a look at my implementation? Maybe after some cleaning up it could be moved to your official library? -- Best regards, Andrey mailto:andysem@mail.ru