Rev 2227 | Rev 2504 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2227 | Rev 2446 | ||
---|---|---|---|
Line 62... | Line 62... | ||
62 | * threads. |
62 | * threads. |
63 | */ |
63 | */ |
64 | SPINLOCK_DECLARE(lock); |
64 | SPINLOCK_DECLARE(lock); |
65 | 65 | ||
66 | char *name; |
66 | char *name; |
67 | /** Pointer to the main thread. */ |
- | |
68 | struct thread *main_thread; |
- | |
69 | /** List of threads contained in this task. */ |
67 | /** List of threads contained in this task. */ |
70 | link_t th_head; |
68 | link_t th_head; |
71 | /** Address space. */ |
69 | /** Address space. */ |
72 | as_t *as; |
70 | as_t *as; |
73 | /** Unique identity of task. */ |
71 | /** Unique identity of task. */ |
74 | task_id_t taskid; |
72 | task_id_t taskid; |
75 | /** Task security context. */ |
73 | /** Task security context. */ |
76 | context_id_t context; |
74 | context_id_t context; |
77 | 75 | ||
78 | /** If this is true, new threads can become part of the task. */ |
- | |
79 | bool accept_new_threads; |
- | |
80 | /** Number of references (i.e. threads). */ |
76 | /** Number of references (i.e. threads). */ |
81 | count_t refcount; |
77 | atomic_t refcount; |
- | 78 | /** Number of threads that haven't exited yet. */ |
|
- | 79 | atomic_t lifecount; |
|
82 | 80 | ||
83 | /** Task capabilities. */ |
81 | /** Task capabilities. */ |
84 | cap_t capabilities; |
82 | cap_t capabilities; |
85 | 83 | ||
86 | /* IPC stuff */ |
84 | /* IPC stuff */ |
Line 120... | Line 118... | ||
120 | extern uint64_t task_get_accounting(task_t *t); |
118 | extern uint64_t task_get_accounting(task_t *t); |
121 | 119 | ||
122 | extern void cap_set(task_t *t, cap_t caps); |
120 | extern void cap_set(task_t *t, cap_t caps); |
123 | extern cap_t cap_get(task_t *t); |
121 | extern cap_t cap_get(task_t *t); |
124 | 122 | ||
125 | - | ||
126 | #ifndef task_create_arch |
123 | #ifndef task_create_arch |
127 | extern void task_create_arch(task_t *t); |
124 | extern void task_create_arch(task_t *t); |
128 | #endif |
125 | #endif |
129 | 126 | ||
130 | #ifndef task_destroy_arch |
127 | #ifndef task_destroy_arch |