
2 May
2010
2 May
'10
4:43 p.m.
On May 2, 2010, at 11:29 AM, Chad Nelson wrote:
\The only thing that I need Boost.Thread for is serializing access to the random number generator -- I assume that most of the generators provided by Boost.Random can't tolerate being used by multiple threads simultaneously.
Boost.Thread is major overkill for that purpose, at least in my opinion, but until Boost.Atomic or something similar is approved, it's the only cross-platform way that I know of to safely serialize access without writing my own code for the purpose.
I believe much of Boost.Thread can be used header-only. In particular, I'm pretty sure the mutex stuff doesn't require linking against the Boost.Thread library.