summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchengxiaohu <[email protected]>2019-11-20 23:38:35 +0800
committerchengxiaohu <[email protected]>2019-11-20 23:38:35 +0800
commit6b8a3469f8cb69d9ee49487c524533a9516ebce1 (patch)
tree9b51157878a815b6da9d8d691ac0bbdbb2bc1f64 /include
parent2a512f3df0f39790a14f1984c42a97dc0a82ba09 (diff)
parent1bf5f67e8a6c9672945d3b0a61e173ce0b6e56d3 (diff)
Merge branch 'master' of https://github.com/chengxiaohu/rt-thread
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index ca7887e40d..3f0b116785 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -491,7 +491,10 @@ typedef siginfo_t rt_siginfo_t;
#define RT_THREAD_RUNNING 0x03 /**< Running status */
#define RT_THREAD_BLOCK RT_THREAD_SUSPEND /**< Blocked status */
#define RT_THREAD_CLOSE 0x04 /**< Closed status */
-#define RT_THREAD_STAT_MASK 0x0f
+#define RT_THREAD_STAT_MASK 0x07
+
+#define RT_THREAD_STAT_YIELD 0x08 /**< indicate whether remaining_tick has been reloaded since last schedule */
+#define RT_THREAD_STAT_YIELD_MASK RT_THREAD_STAT_YIELD
#define RT_THREAD_STAT_SIGNAL 0x10 /**< task hold signals */
#define RT_THREAD_STAT_SIGNAL_READY (RT_THREAD_STAT_SIGNAL | RT_THREAD_READY)