]> pd.if.org Git - pdclib/blob - opt/pthreads/mtx_lock.c
PDCLIB-3 Add XDIGIT to list of bits in Unicode character data
[pdclib] / opt / pthreads / mtx_lock.c
1 #ifndef REGTEST
2 #include <threads.h>
3 #include <pthread.h>
4
5 int mtx_lock(mtx_t *mtx)
6 {
7     if(pthread_mutex_lock(mtx))
8         return thrd_error;
9     else return thrd_success;
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