]> pd.if.org Git - pdclib/blob - opt/pthreads/mtx_unlock.c
0da592a33b838fc35de1ef21f43fa14e07df7678
[pdclib] / opt / pthreads / mtx_unlock.c
1 #ifndef REGTEST
2 #include <threads.h>
3 #include <pthread.h>
4
5 int mtx_unlock(mtx_t *mtx)
6 {
7     if(pthread_mutex_unlock(mtx) == 0)
8         return thrd_success;
9     return thrd_error;
10 }
11 #endif
12
13 #ifdef TEST
14 #include <_PDCLIB_test.h>
15
16 int main( void )
17 {
18     return TEST_RESULTS;
19 }
20
21 #endif