diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-10-23 18:23:57 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-10-23 18:23:57 +1000 |
commit | 17c940423ba2159b20965ea6d004386bc392aa68 (patch) | |
tree | 46d629c13eef49ad5b65be7b0bc1f8ed171de21e /src/gos/gos.h | |
parent | 83e51779ed7f84a81de1a05e86834577a0e57438 (diff) | |
download | uGFX-17c940423ba2159b20965ea6d004386bc392aa68.tar.gz uGFX-17c940423ba2159b20965ea6d004386bc392aa68.tar.bz2 uGFX-17c940423ba2159b20965ea6d004386bc392aa68.zip |
More thread return fixes
Diffstat (limited to 'src/gos/gos.h')
-rw-r--r-- | src/gos/gos.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gos/gos.h b/src/gos/gos.h index 82ad9d1c..048d5765 100644 --- a/src/gos/gos.h +++ b/src/gos/gos.h @@ -69,6 +69,16 @@ */ #define DECLARE_THREAD_STACK(name, sz) uint8_t name[sz]; + /* + * @brief Return from a thread + * + * @details Some underlying operating systems allow to return a value from a thread while others don't. + * For systems that don't allow to return a value from a thread function this call is simply ignored. + * + * @param[in] reval The value which should be returned + */ + #define THREAD_RETURN(retval) return retval + /** * @name Various platform (and operating system) constants * @note Your platform may use slightly different definitions to these |