Explicitly creates a mutex.
Reminder: A mutex (MUTual EXclusion) is a critical section that can be specific to an application or shared among several applications. A mutex is used to manage an exclusive access to a resource shared between several threads. For example, a mutex can be used to handle a shared memory zone.
MutexCreate(<Mutex name> [, <Initial status> [, <Options>]])
<Mutex name>: Character string
Name of the mutex to create.
<Initial status>: Optional boolean
- True if the mutex is occupied by the current thread,
- False (default value) if the mutex is free.
<Options>: Optional integer
Mode for sharing the mutex:
|shareGlobal||The mutex is shared among all the applications found on the computer.|
|shareNone||The mutex is specific to the application. If MutexDestroy is not called, the mutex is destroyed at the end of the application.|
|The mutex is shared among all the applications of the session of the user who runs the application.|