Skip to content

MTY_MutexCreate

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Create an MTY_Mutex for synchronization.

A mutex can be locked by only one thread at a time. Other threads trying to take the same mutex will block until it becomes unlocked.

MTY_Mutex *MTY_MutexCreate(void);

Return value

MTY_Mutex *

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

The returned MTY_Mutex must be destroyed with MTY_MutexDestroy.

Platform support

Windows   macOS   Android   Linux  

See also

Module: Thread

Clone this wiki locally