
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/02/2010 12:43 PM, Kim Barrett 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.
That would make my life easier. :-) I don't see any reference to it in the Boost.Thread documentation though... if it turns out that I still need it after everything else is hashed out, I'll see what I can find in the source code. Thanks for the hint. - -- Chad Nelson Oak Circle Software, Inc. * * * -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvdtdUACgkQp9x9jeZ9/wQPKACg4i1eiUXLcl2h0aYNtm68hoAQ hU4AoLrzpyIBxyEAdw2/OOV3kkk7VFw+ =S00l -----END PGP SIGNATURE-----