Mutex allows to control code execution order and to prevent conflicts in a multi-thread application.
It provides a way to pause execution in one thread until a condition is met in another.
// Creates/gets the "writeMutex" mutex available in all threadsvar writeMutex = Mutex('writeMutex');
Mutex allows to control code execution order and to prevent conflicts in a multi-thread application. It provides a way to pause execution in one thread until a condition is met in another.
// Creates/gets the "writeMutex" mutex available in all threads var writeMutex = Mutex('writeMutex');