Class π
Mutex, simple semaphore for thread synchronisation. A mutex is a simple semaphore that can be used to coordinate access to shared data from multiple concurrent threads.
Initializers
π
π
Creates an new mutex.
Methods
πβοΈ
βοΈ π
Attempts to lock the mutex and waits until it becomes available if it is already locked.
πβοΈ
βοΈ π
Unlocks the mutex.
πβοΈ
βοΈ π β‘οΈ π
Attempts to lock the mutex and returns immediately. Returns π if the mutex could be locked.
deinitβοΈ
βοΈ deinit