Defined in header <threads.h> | ||
---|---|---|
void mtx_destroy( mtx_t *mutex ); | (since C11) |
Destroys the mutex pointed to by mutex
.
If there are threads waiting on mutex
, the behavior is undefined.
mutex | - | pointer to the mutex to destroy |
(none).
C++ documentation for ~mutex |
|
C++ documentation for ~timed_mutex |
|
C++ documentation for ~recursive_mutex |
|
C++ documentation for ~recursive_timed_mutex |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/c/thread/mtx_destroy