Base class: Object
A mutex ("mutually exclusive") is used to defined a block of code that two threads may not execute at the same time. Use of mutexes should be minimized, as they can slow down multithreaded code so that it loses its advantages over single-threaded code.
Property | Type | Description |
---|---|---|
Lock | Method | locks the mutex |
Unlock | Method | unlocks the mutex |
CreateMutex | Function | creates a new mutex |