From 8a9ed5195b3345635533b6150b9303abbaf5adf3 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 3 Nov 2018 12:29:30 +1000 Subject: Tidy u gfxSem, gfxMutex and various Macros by converting to new types gSem, gMutex etc --- src/gevent/gevent.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gevent/gevent.c') 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; } -- cgit v1.2.3