futex&pthread初步支持

This commit is contained in:
zhangzheng
2023-11-19 23:01:35 +08:00
parent 1b82ecbbda
commit c7ee3e2fe7
44 changed files with 1237 additions and 464 deletions

View File

@@ -79,7 +79,10 @@ static inline void thread_set_msg_bug(thread_t *th, void *msg)
{
th->msg.msg = msg;
}
static inline void *thread_get_msg_buf(thread_t *th)
{
return th->msg.msg;
}
static inline enum thread_state thread_get_status(thread_t *th)
{
return th->status;