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
15 mtx->_NestCount = 0;;
\r
17 return thrd_success;
\r
22 #include <_PDCLIB_test.h>
\r
26 return TEST_RESULTS;
\r