Skip to content

MTY_RWLockCreate

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Create an MTY_RWLock that allows concurrent read access.

An MTY_RWLock allows recursive locking from readers, and will prioritize writers when they are waiting.

MTY_RWLock *MTY_RWLockCreate(void);

Return value

MTY_RWLock *

This function can not return NULL. It will call abort() on failure.

The returned MTY_RWLock must be destroyed with MTY_RWLockDestroy.

Platform support

Windows   macOS   Android   Linux  

See also

Module: Thread

Clone this wiki locally