diff Isolated/UNUSED/SimpleSemaphore.h @ 38:71b465ff0622

Added support files.
author Eric Wing <ewing@anscamobile.com>
date Thu, 28 Apr 2011 16:22:30 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Isolated/UNUSED/SimpleSemaphore.h	Thu Apr 28 16:22:30 2011 -0700
@@ -0,0 +1,26 @@
+#ifndef SIMPLE_SEMAPHORE_H
+#define SIMPLE_SEMAPHORE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+	
+typedef struct SimpleSemaphore SimpleSemaphore;
+
+SimpleSemaphore* SimpleSemaphore_CreateSemaphore(int initial_value);
+
+void SimpleSemaphore_DestroySemaphore(SimpleSemaphore* simple_semaphore);
+
+int SimpleSemaphore_SemaphoreTryWait(SimpleSemaphore* simple_semaphore);
+int SimpleSemaphore_SemaphoreWait(SimpleSemaphore* simple_semaphore);
+int SimpleSemaphore_SemaphoreGetValue(SimpleSemaphore* simple_semaphore);
+int SimpleSemaphore_SemaphorePost(SimpleSemaphore* simple_semaphore);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+