void fluke_mutex_lock(fluke_mutex_t *mutex);
Lock a mutex.
- The mutex to lock.
If any of the following errors is detected by the Fluke implementation, it causes the current thread to take a synchronous exception with one of the following codes. All of these have an implicit FLUKE_INSANITY_ prefix.
- mutex does not point to an active object.
- The state of the mutex object has become invalid.
- The mutex object is already locked by the calling thread.