Skip to content

MTY_MutexTryLock

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Try to acquire a lock on a mutex but fail if doing so would block.

bool MTY_MutexTryLock(
    MTY_Mutex * ctx
);

Parameters

ctx (MTY_Mutex *)

An MTY_Mutex.

Return value

bool

If the lock was acquired, returns true, otherwise false.

Platform support

Windows   macOS   Android   Linux  

See also

Module: Thread

Clone this wiki locally