summaryrefslogtreecommitdiffstats
path: root/K2LABI/Common/windows-adapter.h
diff options
context:
space:
mode:
Diffstat (limited to 'K2LABI/Common/windows-adapter.h')
-rw-r--r--K2LABI/Common/windows-adapter.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/K2LABI/Common/windows-adapter.h b/K2LABI/Common/windows-adapter.h
new file mode 100644
index 0000000..9f08d4b
--- /dev/null
+++ b/K2LABI/Common/windows-adapter.h
@@ -0,0 +1,27 @@
+//
+// windows-adapter.h
+// AmbientLight
+//
+// Created by Thorsten Kummermehr on 10/9/13.
+//
+//
+
+#ifndef AmbientLight_windows_adapter_h
+#define AmbientLight_windows_adapter_h
+
+#include "k2l-type.h"
+#include <pthread.h>
+
+typedef struct
+{
+ pthread_mutex_t m_mutex;
+} CRITICAL_SECTION;
+
+typedef CRITICAL_SECTION * LPCRITICAL_SECTION;
+
+void InitializeCriticalSection( LPCRITICAL_SECTION lpCriticalSection );
+void DeleteCriticalSection(LPCRITICAL_SECTION lpCriticalSection);
+void EnterCriticalSection(LPCRITICAL_SECTION lpCriticalSection);
+void LeaveCriticalSection(LPCRITICAL_SECTION lpCriticalSection);
+
+#endif