diff options
Diffstat (limited to 'src/gevent/gevent.c')
-rw-r--r-- | src/gevent/gevent.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gevent/gevent.c b/src/gevent/gevent.c index 6681fb53..779f63a0 100644 --- a/src/gevent/gevent.c +++ b/src/gevent/gevent.c @@ -46,10 +46,16 @@ static void deleteAssignments(GListener *pl, GSourceHandle gsh) { } } -void _geventInit(void) { +void _geventInit(void) +{ gfxMutexInit(&geventMutex); } +void _geventDeinit(void) +{ + gfxMutexDestroy(&geventMutex); +} + void geventListenerInit(GListener *pl) { gfxSemInit(&pl->waitqueue, 0, MAX_SEMAPHORE_COUNT); // Next wait'er will block gfxSemInit(&pl->eventlock, 1, 1); // Only one thread at a time looking at the event buffer |