Help / WLanguage / WLanguage functions / Standard functions / Process functions / Threads, semaphores, signals and mutex
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Locks the current thread while waiting for the mutex to be freed.
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.
<Result> = MutexStart(<Mutex name> [, <Maximum timeout>])
<Result>: Boolean
  • True if the thread received the authorization to enter into the mutex,
  • False otherwise (maximum duration reached).
<Mutex name>: Character string
Name of mutex used. If the mutex does not exist, it is created with the default options (see MutexCreate).
<Maximum timeout>: Optional integer or optional Duration
Maximum timeout in hundredths of a second. At the end of the specified duration, if the thread did not receive the authorization, <Result> is set to False.
  • If this parameter is not specified or if it corresponds to the Infinite constant, the wait is infinite.
  • If this parameter is set to 0, <Result> corresponds to the status of the mutex. The thread is not pending.
This parameter can be:
  • an integer corresponding to the number of hundredths of a second,
  • a Duration variable,
  • the duration in a readable format (e.g., 1 s or 10 ms).
Component: wd300vm.dll
Minimum version required
  • Version 16
This page is also available for…
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help