aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gos_osx.c
diff options
context:
space:
mode:
authorinmarket <inmarket@ugfx.io>2017-08-16 16:49:02 +1000
committerinmarket <inmarket@ugfx.io>2017-08-16 16:49:02 +1000
commitd7b083da1e3fbc9355422bc29470c387e88389d7 (patch)
tree5b21b55ae61e54fb1bdad40aaf0f590385176c02 /src/gos/gos_osx.c
parent422e95becf719ab3dfc3e37d5fda1b6f37dd02fb (diff)
downloaduGFX-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.c11
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 */