Boost logo

Boost :

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


"Henrik Sundberg" <storangen_at_[hidden]> wrote in
news:aef9adb00704300822q2459684ex994be6b70700275a_at_[hidden]:

> 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:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk