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