]> pd.if.org Git - pdclib/blob - opt/nothread/mtx_unlock.c
02244bbed591b682cc065cf694e72f4a73a7cccb
[pdclib] / opt / nothread / mtx_unlock.c
1 #include <threads.h>\r
2 \r
3 int mtx_unlock(mtx_t *mtx)\r
4 {\r
5         if(*mtx) {\r
6                 *mtx = 0;\r
7                 return thrd_success;\r
8         } else return thrd_error;\r
9 }