Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2003-12-05 07:51:33

> > I am working on boost::random. I am using this in boost::thread. Whether
> > boost::random is thread safe. If not how to make it thread safe.
> >
> I did not take a look at boost::random, but I'm pretty sure it's not
> To make it thread-safe, create a helper function, and make that helper
> thread-safe.
> Then, never call boost::random directly.

I would have said that is was thread safe: as long as you don't try and
share the same object between two different threads.


Boost list run by bdawes at, gregod at, cpdaniel at, john at