X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Fmtx_init.c;fp=opt%2Fnothread%2Fmtx_init.c;h=ff506e94e03e5ee67cde2b95fb831c990dea9eab;hb=b41576197133c1211d6ec353faf93f505f573b8a;hp=0000000000000000000000000000000000000000;hpb=93ca2d813f86c52bb9bece81ca564d4831bff9e5;p=pdclib diff --git a/opt/nothread/mtx_init.c b/opt/nothread/mtx_init.c new file mode 100644 index 0000000..ff506e9 --- /dev/null +++ b/opt/nothread/mtx_init.c @@ -0,0 +1,7 @@ +#include + +int mtx_init(mtx_t *mtx, int type) +{ + *mtx = 0; + return thrd_success; +}