|
Boost : |
Subject: Re: [boost] [xint] Third release is ready, requesting preliminary review
From: Kim Barrett (kab.conundrums_at_[hidden])
Date: 2010-05-02 12:43:19
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk