fix: 修改线程控制块中的标志位长度
@@ -936,7 +936,7 @@ uint32_t osThreadFlagsSet(osThreadId_t thread_id, uint32_t flags)
thread_cb->flag_set &= ~thread_cb->thread.event_set;
/* resume thread, and thread list breaks out */
- rt_thread_resume(rt_thread_self());
+ rt_thread_resume(&(thread_cb->thread));
need_schedule = RT_TRUE;
}
@@ -45,10 +45,10 @@ extern "C" {
typedef struct
{
- rt_uint8_t flags;
+ rt_uint32_t flags;
struct rt_thread thread;
rt_sem_t joinable_sem; ///< semaphore for joinable thread
- rt_uint8_t flag_set; ///< thread flag set
+ rt_uint32_t flag_set; ///< thread flag set
rt_uint8_t prio;
}thread_cb_t;