diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-06-02 18:57:22 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-06-02 18:57:22 +1000 |
commit | 1c258a82738e145953fc9cf40c68dcce6db87d92 (patch) | |
tree | c151e882619714d696276ce29ef3388dce6e1866 /src/gdisp/gdisp.c | |
parent | c2a4f9a5d616f5b18a965652d7492aacd377e5e2 (diff) | |
download | uGFX-1c258a82738e145953fc9cf40c68dcce6db87d92.tar.gz uGFX-1c258a82738e145953fc9cf40c68dcce6db87d92.tar.bz2 uGFX-1c258a82738e145953fc9cf40c68dcce6db87d92.zip |
GOS updates
Diffstat (limited to 'src/gdisp/gdisp.c')
-rw-r--r-- | src/gdisp/gdisp.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gdisp/gdisp.c b/src/gdisp/gdisp.c index b316be49..9ba85d82 100644 --- a/src/gdisp/gdisp.c +++ b/src/gdisp/gdisp.c @@ -39,7 +39,7 @@ static gfxMutex gdispMsgsMutex; static gfxSem gdispMsgsSem; static gdisp_lld_msg_t gdispMsgs[GDISP_QUEUE_SIZE]; - static DECLARESTACK(waGDISPThread, GDISP_THREAD_STACK_SIZE); + static DECLARE_THREAD_STACK(waGDISPThread, GDISP_THREAD_STACK_SIZE); #endif /*===========================================================================*/ @@ -47,7 +47,7 @@ /*===========================================================================*/ #if GDISP_NEED_ASYNC - static threadreturn_t GDISPThreadHandler(void *arg) { + static DECLARE_THREAD_FUNCTION(GDISPThreadHandler, arg) { (void)arg; gdisp_lld_msg_t *pmsg; @@ -111,7 +111,8 @@ } #elif GDISP_NEED_ASYNC void _gdispInit(void) { - unsigned i; + unsigned i; + gfxThreadHandle hth; /* Mark all the Messages as free */ for(i=0; i < GDISP_QUEUE_SIZE; i++) @@ -126,7 +127,8 @@ gfxMutexInit(&gdispMsgsMutex); gfxSemInit(&gdispMsgsSem, GDISP_QUEUE_SIZE, GDISP_QUEUE_SIZE); - gfxCreateThread(waGDISPThread, sizeof(waGDISPThread), NORMAL_PRIORITY, GDISPThreadHandler, NULL); + hth = gfxThreadCreate(waGDISPThread, sizeof(waGDISPThread), NORMAL_PRIORITY, GDISPThreadHandler, NULL); + if (hth) gfxThreadClose(hth); /* Initialise driver - synchronous */ gfxMutexEnter(&gdispMutex); |