]> pd.if.org Git - pdclib/blob - opt/nothread/mtx_timedlock.c
047dce63beb5368baa485199f57b9af3da75a1e5
[pdclib] / opt / nothread / mtx_timedlock.c
1 #ifndef REGTEST\r
2 #include <threads.h>\r
3 \r
4 int mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts)\r
5 {\r
6         return mtx_lock(mtx);\r
7 }\r
8 #endif\r
9 \r
10 #ifdef TEST\r
11 #include "_PDCLIB_test.h"\r
12 \r
13 int main( void )\r
14 {\r
15     return TEST_RESULTS;\r
16 }\r
17 \r
18 #endif\r