diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-07-08 15:40:27 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-07-08 15:40:27 +1000 |
commit | 330f891081dbd755063767a25f39c517fbe5c432 (patch) | |
tree | 99b3693a0f9bcca588b4a6ea51d50f3f6e564ef4 /src/gos/gos_chibios.h | |
parent | 1fc4180d41a77088bbb2c0ce020d5ff7ab88c16e (diff) | |
download | uGFX-330f891081dbd755063767a25f39c517fbe5c432.tar.gz uGFX-330f891081dbd755063767a25f39c517fbe5c432.tar.bz2 uGFX-330f891081dbd755063767a25f39c517fbe5c432.zip |
Added type gThread to replace V2.x gfxThreadHandle
Diffstat (limited to 'src/gos/gos_chibios.h')
-rw-r--r-- | src/gos/gos_chibios.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gos/gos_chibios.h b/src/gos/gos_chibios.h index f9a85a88..ac06c5cb 100644 --- a/src/gos/gos_chibios.h +++ b/src/gos/gos_chibios.h @@ -54,7 +54,7 @@ typedef tprio_t gThreadpriority; } gfxSem; typedef Mutex gfxMutex; - typedef Thread* gfxThreadHandle; + typedef Thread* gThread; #else #undef DECLARE_THREAD_STACK #define DECLARE_THREAD_STACK(a, b) THD_WORKING_AREA(a, b) @@ -65,7 +65,7 @@ typedef tprio_t gThreadpriority; } gfxSem; typedef mutex_t gfxMutex; - typedef thread_t* gfxThreadHandle; + typedef thread_t* gThread; #endif @@ -110,7 +110,7 @@ gBool gfxSemWait(gfxSem *psem, gDelay ms); gBool gfxSemWaitI(gfxSem *psem); void gfxSemSignal(gfxSem *psem); void gfxSemSignalI(gfxSem *psem); -gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, gThreadpriority prio, DECLARE_THREAD_FUNCTION((*fn),p), void *param); +gThread gfxThreadCreate(void *stackarea, size_t stacksz, gThreadpriority prio, DECLARE_THREAD_FUNCTION((*fn),p), void *param); #define gfxThreadWait(thread) chThdWait(thread) #define gfxThreadMe() chThdSelf() #define gfxThreadClose(thread) (void)thread |