Skip to content

MTY_RWTryLockReader

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Try to acquire a read lock on an MTY_RWLock but fail if doing so would block.

bool MTY_RWTryLockReader(
    MTY_RWLock * ctx
);

Parameters

ctx (MTY_RWLock *)

An MTY_RWLock.

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