]> pd.if.org Git - pdclib/blob - opt/nothread/mtx_trylock.c
dos2unix
[pdclib] / opt / nothread / mtx_trylock.c
1 #ifndef REGTEST
2 #include <threads.h>
3
4 int mtx_trylock(mtx_t *mtx)
5 {
6         (*mtx)++;
7         return thrd_success;
8 }
9 #endif
10
11 #ifdef TEST
12 #include "_PDCLIB_test.h"
13
14 int main( void )
15 {
16     return TEST_RESULTS;
17 }
18
19 #endif