Boost logo

Boost :

From: Andy (atompkins_at_[hidden])
Date: 2007-04-30 14:03:34

"Henrik Sundberg" <storangen_at_[hidden]> wrote in

> This is not a review, just a remark.
>>From the documentation:
> The boost::guid::create() function returns a random-number-based
> guid... All functions are thread-safe except boost::guid::create().

Bad working. All functions are thread-safe without using thread
primitives, except for boost::guid::create(). The function,
boost::guid::create(), needs a mutex to be thread safe. If
BOOST_HAS_THREADS is defined, Boost.Thread is used to make
boost::guid::create() thread safe.

Andy Tompkins.

> Why isn't this routine made thread-safe? Why are the other routines
> thread-safe when this isn't?
> /$
> _______________________________________________
> Unsubscribe & other changes:

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