$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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