A synchronization Mutex.
    public class Mutex : Reference

A synchronization Mutex. Element used to synchronize multiple Threads. Basically a binary Semaphore. Guarantees that only one thread can ever acquire this lock at a time. Can be used to protect a critical section. Be careful to avoid deadlocks.

Inheritance Chain

Constructors

    public Mutex()

Methods

    public void Lock()

Lock this Mutex, blocks until it is unlocked by the current owner.

    public Error TryLock()

Try locking this Mutex, does not block. Returns OK on success, ERR_BUSY otherwise.

    public void Unlock()

Unlock this Mutex, leaving it to other threads.

Tags: