aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gos.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gos/gos.h')
-rw-r--r--src/gos/gos.h10
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