-
Notifications
You must be signed in to change notification settings - Fork 55
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);
MTY_Mutex *
This function can not return NULL
. It will call abort()
on failure.
The returned MTY_Mutex
must be destroyed with MTY_MutexDestroy
.