Repos / kernel.git / commitdiff
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bba78a9)
raw | patch | inline | side by side (parent: bba78a9)
| author | zhaoyanbai <zhaoyanbai@126.com> | |
| Sat, 27 Nov 2021 03:53:09 +0000 (11:53 +0800) | ||
| committer | zhaoyanbai <zhaoyanbai@126.com> | |
| Sat, 27 Nov 2021 03:53:09 +0000 (11:53 +0800) |
| include/task.h | patch | blob | history | |
| include/wait.h | patch | blob | history |
diff --git a/include/task.h b/include/task.h
--- a/include/task.h
+++ b/include/task.h
#include <processor.h>
#include <system.h>
#include <types.h>
+#include <wait.h>
enum {
TASK_UNUSED,
#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
--- a/include/wait.h
+++ b/include/wait.h
#include <irq.h>
#include <list.h>
-#include <task.h>
+
+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;