|
Boost Users : |
From: Daher (dee_at_[hidden])
Date: 2006-11-05 06:38:27
Thanks for the reply.
>> Is this answering your question?
Not really; what I meant by a global mutex is a mutex that is shared
across instances or across other processes.
"Global\" prefix name in win32 would do this.. I want to be able to do
the same with boost.threads
Daher
Roland Schwarz wrote:
> Daher wrote:
>
>> How do I create a global mutex in boost.threads ?
>>
>
> Like any other global object.
>
> boost::mutex globalmutex;
>
> int main(int argc, char* argv[])
> {
> ....
>
> }
>
> You will be able to use it after main is up and
> running. I.e. do not start any threads from
> global constructors, or try to lock the mutex
> from within other global constructors.
>
> Is this answering your question?
>
> Roland
>
>
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