]> pd.if.org Git - pdclib/commitdiff
win32: mtx_destroy implemented
authorOwen Shepherd <owen.shepherd@e43.eu>
Thu, 23 Aug 2012 15:33:29 +0000 (16:33 +0100)
committerOwen Shepherd <owen.shepherd@e43.eu>
Thu, 23 Aug 2012 15:33:29 +0000 (16:33 +0100)
platform/win32/functions/threads/mtx_destroy.c [new file with mode: 0644]

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