Rev 788 | Rev 973 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 788 | Rev 955 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | #define __TASK_H__ |
30 | #define __TASK_H__ |
31 | 31 | ||
32 | #include <typedefs.h> |
32 | #include <typedefs.h> |
33 | #include <synch/spinlock.h> |
33 | #include <synch/spinlock.h> |
34 | #include <adt/list.h> |
34 | #include <adt/list.h> |
- | 35 | #include <ipc/ipc.h> |
|
35 | 36 | ||
36 | /** Task structure. */ |
37 | /** Task structure. */ |
37 | struct task { |
38 | struct task { |
38 | SPINLOCK_DECLARE(lock); |
39 | SPINLOCK_DECLARE(lock); |
39 | link_t th_head; /**< List of threads contained in this task. */ |
40 | link_t th_head; /**< List of threads contained in this task. */ |
40 | link_t tasks_link; /**< Link to other tasks within the system. */ |
41 | link_t tasks_link; /**< Link to other tasks within the system. */ |
41 | as_t *as; /**< Address space. */ |
42 | as_t *as; /**< Address space. */ |
- | 43 | answerbox_t answerbox; /**< Communication endpoint */ |
|
- | 44 | phone_t phones[IPC_MAX_PHONES]; |
|
42 | }; |
45 | }; |
43 | 46 | ||
44 | extern spinlock_t tasks_lock; |
47 | extern spinlock_t tasks_lock; |
45 | extern link_t tasks_head; |
48 | extern link_t tasks_head; |
46 | 49 |