aboutsummaryrefslogtreecommitdiffstats
path: root/src/gevent/gevent.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-11-03 12:29:30 +1000
committerinmarket <andrewh@inmarket.com.au>2018-11-03 12:29:30 +1000
commit8a9ed5195b3345635533b6150b9303abbaf5adf3 (patch)
treeb57c4580a50b261e75a19e53124acb3670d47b6f /src/gevent/gevent.c
parent7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d (diff)
downloaduGFX-8a9ed5195b3345635533b6150b9303abbaf5adf3.tar.gz
uGFX-8a9ed5195b3345635533b6150b9303abbaf5adf3.tar.bz2
uGFX-8a9ed5195b3345635533b6150b9303abbaf5adf3.zip
Tidy u gfxSem, gfxMutex and various Macros by converting to new types gSem, gMutex etc
Diffstat (limited to 'src/gevent/gevent.c')
-rw-r--r--src/gevent/gevent.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gevent/gevent.c b/src/gevent/gevent.c
index 472fb25c..2ca2973e 100644
--- a/src/gevent/gevent.c
+++ b/src/gevent/gevent.c
@@ -20,7 +20,7 @@
#define GLISTENER_WITHSOURCE 0x0002 // The source is currently using the buffer
/* This mutex protects access to our tables */
-static gfxMutex geventMutex;
+static gMutex geventMutex;
/* Our table of listener/source pairs */
static GSourceListener Assignments[GEVENT_MAX_SOURCE_LISTENERS];
@@ -62,9 +62,9 @@ void _geventDeinit(void)
}
void geventListenerInit(GListener *pl) {
- gfxSemInit(&pl->waitqueue, 0, MAX_SEMAPHORE_COUNT); // Next wait'er will block
- pl->callback = 0; // No callback active
- pl->event.type = GEVENT_NULL; // Always safety
+ gfxSemInit(&pl->waitqueue, 0, gSemMaxCount); // Next wait'er will block
+ pl->callback = 0; // No callback active
+ pl->event.type = GEVENT_NULL; // Always safety
pl->flags = 0;
}