X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fpthreads%2Fmtx_destroy.c;fp=opt%2Fpthreads%2Fmtx_destroy.c;h=2d0a2a2187006256c96ac14507e06e8a1a2cf23a;hb=a3b310f13d9001554fe24f3eebab8c0bebac72ca;hp=0000000000000000000000000000000000000000;hpb=c2d0eabd70beb268554939e4cc7fdc0732b21141;p=pdclib diff --git a/opt/pthreads/mtx_destroy.c b/opt/pthreads/mtx_destroy.c new file mode 100644 index 0000000..2d0a2a2 --- /dev/null +++ b/opt/pthreads/mtx_destroy.c @@ -0,0 +1,19 @@ +#ifndef REGTEST +#include +#include + +void mtx_destroy(mtx_t *mtx) +{ + pthread_mutex_destroy(mtx); +} +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif