|
Boost Users : |
From: Jim Douglas (jim_at_[hidden])
Date: 2006-02-17 01:47:25
Dhanvi Kapila wrote:
> Hi :
> I have this piece of code for mutex operations. is this code
> thread-safe ? I plan to use this code in threads...
If you stop and think about it for a second, the principal reason
mutexes, condvars etc were invented was to synchronise the operation of
separate threads competing for access to a common memory space.
So, it would be pointless having a mutex that was not thread safe. In
the Unix world at least these synchronisation primitives are all defined
in the _pthread_ library.
Jim
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