Mercurial > almixer_isolated
view Isolated/UNUSED/SimpleSemaphore.h @ 71:36644b1b940b
Removed use of dllimport for Windows.
Johnson Lin reported that he was getting warnings about it. I think the problem is that I didn't handle the case where you compile the files into your project or statically link. In this case you don't want dllexport or dllimport. From what I read, dllimport is optional (an optimization hint). Since this is becoming a nuisance, I rather just remove it rather than require another build flag.
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Wed, 20 Jun 2012 10:46:03 -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