diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-11-03 12:29:30 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-11-03 12:29:30 +1000 |
commit | 8a9ed5195b3345635533b6150b9303abbaf5adf3 (patch) | |
tree | b57c4580a50b261e75a19e53124acb3670d47b6f /src/gevent | |
parent | 7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d (diff) | |
download | uGFX-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')
-rw-r--r-- | src/gevent/gevent.c | 8 | ||||
-rw-r--r-- | src/gevent/gevent.h | 4 |
2 files changed, 6 insertions, 6 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; } diff --git a/src/gevent/gevent.h b/src/gevent/gevent.h index 4e8dacec..d499ee32 100644 --- a/src/gevent/gevent.h +++ b/src/gevent/gevent.h @@ -55,8 +55,8 @@ typedef void (*GEventCallbackFn)(void *param, GEvent *pe); // The Listener Object typedef struct GListener { - gfxSem waitqueue; // Private: Semaphore for the listener to wait on. - gU16 flags; // Private: Flags for operation + gSem waitqueue; // Private: Semaphore for the listener to wait on. + gU16 flags; // Private: Flags for operation GEventCallbackFn callback; // Private: Call back Function void *param; // Private: Parameter for the callback function. GEvent event; // Public: The event object into which the event information is stored. |