mtx_destroy - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# mtx_destroy

From cppreference.com
< c‎ | thread

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.

### [edit] Parameters

mutex | - | pointer to the mutex to destroy

### [edit] Return value

(none)

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/thread/mtx_destroy&oldid=64070"