]> pd.if.org Git - pdclib/blobdiff - platform/win32/functions/threads/mtx_destroy.c
win32: mtx_destroy implemented
[pdclib] / platform / win32 / functions / threads / mtx_destroy.c
diff --git a/platform/win32/functions/threads/mtx_destroy.c b/platform/win32/functions/threads/mtx_destroy.c
new file mode 100644 (file)
index 0000000..7a50a10
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef REGTEST\r
+#include <threads.h>\r
+#include <windows.h>\r
+\r
+void mtx_destroy(mtx_t *mtx)\r
+{\r
+    CloseHandle(mtx->_WaitEvHandle);\r
+}\r
+#endif\r
+\r
+#ifdef TEST\r
+#include <_PDCLIB_test.h>\r
+\r
+int main( void )\r
+{\r
+    return TEST_RESULTS;\r
+}\r
+\r
+#endif
\ No newline at end of file