Mercurial > almixer_isolated
view Isolated/UNUSED/SimpleSemaphore.h @ 79:358b0bd5df43 tip
Added support for Apportable's alcSuspend()/alcResume() in BeginInterruption()/EndInterruption. You must define ALMIXER_USE_APPORTABLE_OPENAL_EXTENSIONS to compile in this support.
author | Eric Wing <ewing@coronalabs.com> |
---|---|
date | Tue, 30 Oct 2012 16:01:30 -0700 |
parents | 71b465ff0622 |
children |
line wrap: on
line source
#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