Boost logo

Boost Users :

From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2006-02-17 06:07:55


Dhanvi Kapila wrote:

>Hi :
> I have this piece of code for mutex operations. is this code
>thread-safe ?
>
Thread-safety aside, what is the use of this code? Why not just use a
shared_ptr<mutex> and construct the lock objects on the stack, as
they're supposed to be (and as is exception-safe, unlike your object)?

Sebastian Redl


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net