#include <oskit/threads/pthread.h>int pthread_mutex_lock(pthread_mutex_t *m);
Lock a mutex object. If the mutex is currently locked, the thread waits (is suspended) for the mutex to become available.
- mutex
- A pointer to the mutex object.
Returns zero on success.
pthread_mutex_init, pthread_mutex_unlock, pthread_mutex_trylock