From f2fcdb1c4b9b2a80304e228e48143295439a5733 Mon Sep 17 00:00:00 2001 From: acevest Date: Sat, 27 Nov 2021 11:53:09 +0800 Subject: [PATCH] =?utf8?q?=E5=B0=86wait=5Fqueue=5Fhead=5Ft=E7=9A=84?= =?utf8?q?=E5=AE=9A=E4=B9=89=E7=A7=BB=E5=9B=9Ewait.h?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- include/task.h | 5 +---- include/wait.h | 9 +++++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/include/task.h b/include/task.h index ac27a6a..6b8e1d9 100644 --- a/include/task.h +++ b/include/task.h @@ -22,6 +22,7 @@ #include #include #include +#include enum { TASK_UNUSED, @@ -34,10 +35,6 @@ enum { #define TASK_NAME_SIZE 32 -typedef struct wait_queue_head { - list_head_t task_list; -} wait_queue_head_t; - typedef union task_union { struct { unsigned long esp0; /* kernel stack */ diff --git a/include/wait.h b/include/wait.h index 6e9d03c..f985f9a 100644 --- a/include/wait.h +++ b/include/wait.h @@ -14,10 +14,15 @@ #include #include -#include + +union task_union; + +typedef struct wait_queue_head { + list_head_t task_list; +} wait_queue_head_t; typedef struct { - task_union *task; + union task_union *task; list_head_t task_list; } wait_queue_t; -- 2.44.0