]> pd.if.org Git - pdclib.old/blob - opt/pthreads/mtx_lock.c
Add optional EIO to tss_errno
[pdclib.old] / 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