On 12/09/09 16:24, true...@gmail.com wrote:
I need a mutex to protect a section of code of a non-member function from concurrent execution. Do I have to use use osl::Mutex::getGlobalMutex(), or do I have to create a global mutex ? Is it possible to create global mutexes, and if so, why use osl::Mutex::getGlobalMutex() instead of creating a special-purpose global mutex ?

The osl global mutex is intended for really short lived actions, mostly within UNO itself (like ensuring that some other, dynamically created mutex is only allocated once by a single thread). In general, if your code needs a mutex, it should create one of its own.

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org

Reply via email to