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.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.h')
-rw-r--r-- | src/gos/gos.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gos/gos.h b/src/gos/gos.h index 67ef0ddd..1dbdd5f7 100644 --- a/src/gos/gos.h +++ b/src/gos/gos.h @@ -123,7 +123,7 @@ * @brief A thread handle * @note Your operating system will have a proper definition for this. */ - typedef void * gfxThreadHandle; + typedef void * gThread; /*===========================================================================*/ /* Function declarations. */ @@ -420,7 +420,7 @@ * * @api */ - 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); /** * @brief Wait for a thread to finish. @@ -432,7 +432,7 @@ * once the thread has ended. * @api */ - gThreadreturn gfxThreadWait(gfxThreadHandle thread); + gThreadreturn gfxThreadWait(gThread thread); /** * @brief Get the current thread handle. @@ -440,7 +440,7 @@ * * @api */ - gfxThreadHandle gfxThreadMe(void); + gThread gfxThreadMe(void); /** * @brief Close the thread handle. @@ -451,7 +451,7 @@ * * @api */ - void gfxThreadClose(gfxThreadHandle thread); + void gfxThreadClose(gThread thread); /** * All the above was just for the doxygen documentation. All the implementation of the above @@ -501,6 +501,7 @@ #define TIME_INFINITE gDelayForever #endif typedef gTicks systemticks_t; + typedef gThread gfxThreadHandle; typedef gThreadreturn threadreturn_t; typedef gThreadpriority threadpriority_t; #define LOW_PRIORITY gThreadpriorityLow |