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