mtx_destroy(3)		   Library Functions Manual		mtx_destroy(3)

NAME
     mtx_destroy – destroy a mutex

SYNOPSIS
     library “threads”
     #include <threads.h>

     int
     mtx_destroy(mtx_t *mtx);

DESCRIPTION
     The function mtx_destroy() destroy the given mutex mtx.

     There must be no threads waiting on the given mutex when it is destroyed.

RETURN VALUES
     Upon success mtx_destroy() returns thrd_success, in the case of an error
     thrd_error will be returned.

SEE ALSO
     mtx_init(3) mtx_lock(3) mtx_timedlock(3) mtx_trylock(3) mtx_unlock(3)

HISTORY
     The mtx_destroy() function first appeared in the C11 standard ISO/IEC
     9899:2011.

AUTHORS
     Jan Adelsbach <jan@jadelsbach.de>


Linux 6.13.6-1-default		  May 9, 2020		Linux 6.13.6-1-default