aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/osx.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-03-11 17:10:11 +1000
committerinmarket <andrewh@inmarket.com.au>2014-03-11 17:10:11 +1000
commita29501c7bda2212417e1df4b255690bd7fb61ad2 (patch)
tree1ea78734b0beb6f97b78e2e38443ee1bbe125e45 /src/gos/osx.h
parentc70d98ef59bddda73cd4d97142a98f1513d11947 (diff)
downloaduGFX-a29501c7bda2212417e1df4b255690bd7fb61ad2.tar.gz
uGFX-a29501c7bda2212417e1df4b255690bd7fb61ad2.tar.bz2
uGFX-a29501c7bda2212417e1df4b255690bd7fb61ad2.zip
Add support for gfxSemWaitI() GOS api.
Diffstat (limited to 'src/gos/osx.h')
-rw-r--r--src/gos/osx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gos/osx.h b/src/gos/osx.h
index 56e0551e..80b07eec 100644
--- a/src/gos/osx.h
+++ b/src/gos/osx.h
@@ -45,6 +45,7 @@ typedef pthread_mutex_t gfxMutex;
#define gfxMutexDestroy(pmtx) pthread_mutex_destroy(pmtx)
#define gfxMutexEnter(pmtx) pthread_mutex_lock(pmtx)
#define gfxMutexExit(pmtx) pthread_mutex_unlock(pmtx)
+#define gfxSemWaitI(psem) gfxSemWait(psem, TIME_IMMEDIATE)
#define gfxSemSignalI(psem) gfxSemSignal(psem)
#define gfxSemCounterI(pSem) ((pSem)->cnt)