]> pd.if.org Git - pdclib/blob - opt/nothread/mtx_unlock.c
* Change the style of inclusion of the internal/ headers. Modern preprocessors
[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 }