mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 09:28:49 +08:00
将yield状态置于tcb的stat位域中
This commit is contained in:
+4
-2
@@ -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)
|
||||
@@ -608,7 +611,6 @@ struct rt_thread
|
||||
|
||||
rt_ubase_t init_tick; /**< thread's initialized tick */
|
||||
rt_ubase_t remaining_tick; /**< remaining tick */
|
||||
rt_ubase_t can_yield; /**< indicate whether remaining_tick has been reloaded since last schedule */
|
||||
|
||||
struct rt_timer thread_timer; /**< built-in thread timer */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user