X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=opt%2Fpthreads%2Fmtx_destroy.c;fp=opt%2Fpthreads%2Fmtx_destroy.c;h=2d0a2a2187006256c96ac14507e06e8a1a2cf23a;hp=0000000000000000000000000000000000000000;hb=d293fb98fe80a472ad4d11b4d8a1413d2142064a;hpb=42ca148113de4800d41cbd0491c508160bb1cf36 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