diff options
author | inmarket <inmarket@ugfx.io> | 2017-08-16 16:49:02 +1000 |
---|---|---|
committer | inmarket <inmarket@ugfx.io> | 2017-08-16 16:49:02 +1000 |
commit | d7b083da1e3fbc9355422bc29470c387e88389d7 (patch) | |
tree | 5b21b55ae61e54fb1bdad40aaf0f590385176c02 /src/gos/gos_osx.c | |
parent | 422e95becf719ab3dfc3e37d5fda1b6f37dd02fb (diff) | |
download | uGFX-d7b083da1e3fbc9355422bc29470c387e88389d7.tar.gz uGFX-d7b083da1e3fbc9355422bc29470c387e88389d7.tar.bz2 uGFX-d7b083da1e3fbc9355422bc29470c387e88389d7.zip |
Remove long obsoleted (and dubious) functions gfxSemCounter() and gfxSemCounterI()
Diffstat (limited to 'src/gos/gos_osx.c')
-rw-r--r-- | src/gos/gos_osx.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gos/gos_osx.c b/src/gos/gos_osx.c index f06685d7..56d64d98 100644 --- a/src/gos/gos_osx.c +++ b/src/gos/gos_osx.c @@ -180,15 +180,4 @@ void gfxSemSignal(gfxSem *pSem) { pthread_mutex_unlock(&pSem->mtx); } -semcount_t gfxSemCounter(gfxSem *pSem) { - semcount_t res; - - // The locking is really only required if obtaining the count is a divisible operation - // which it might be on a 8/16 bit processor with a 32 bit semaphore count. - pthread_mutex_lock(&pSem->mtx); - res = pSem->cnt; - pthread_mutex_unlock(&pSem->mtx); - return res; -} - #endif /* GFX_USE_OS_OSX */ |