Mutex

    Category: Core

    A synchronization Mutex. Element used to synchronize multiple s. 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.

    • void lock ( )

    Try locking this , does not block. Returns on success, @GlobalScope.ERR_BUSY otherwise.


    • void unlock ( )