5 int mtx_init(mtx_t *mtx, int type)
\r
7 mtx->_WaitEvHandle = CreateEvent(NULL,
\r
8 /* bManualReset*/ FALSE,
\r
9 /* bInitialState*/ FALSE,
\r
11 if(mtx->_WaitEvHandle == NULL)
\r
16 mtx->_NestCount = 0;;
\r
18 return thrd_success;
\r
23 #include <_PDCLIB_test.h>
\r
27 return TEST_RESULTS;
\r