Changes in kernel/generic/src/proc/task.c [5d0500c:473d5d2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/task.c
r5d0500c r473d5d2 50 50 #include <ipc/ipc.h> 51 51 #include <ipc/ipcrsc.h> 52 #include <ipc/event.h>53 52 #include <print.h> 54 53 #include <errno.h> … … 58 57 #include <syscall/copy.h> 59 58 #include <macros.h> 59 #include <ipc/event.h> 60 60 61 61 /** Spinlock protecting the tasks_tree AVL tree. */ … … 155 155 mutex_initialize(&task->futexes_lock, MUTEX_PASSIVE); 156 156 157 list_initialize(&task->th reads);158 list_initialize(&task->sync_box es);157 list_initialize(&task->th_head); 158 list_initialize(&task->sync_box_head); 159 159 160 160 ipc_answerbox_init(&task->answerbox, task); … … 201 201 task->ipc_info.irq_notif_received = 0; 202 202 task->ipc_info.forwarded = 0; 203 204 event_task_init(task);205 203 206 204 #ifdef CONFIG_UDEBUG … … 437 435 438 436 /* Current values of threads */ 439 list_foreach(task->threads, cur) { 437 link_t *cur; 438 for (cur = task->th_head.next; cur != &task->th_head; cur = cur->next) { 440 439 thread_t *thread = list_get_instance(cur, thread_t, th_link); 441 440 … … 469 468 */ 470 469 471 list_foreach(task->threads, cur) { 470 link_t *cur; 471 for (cur = task->th_head.next; cur != &task->th_head; cur = cur->next) { 472 472 thread_t *thread = list_get_instance(cur, thread_t, th_link); 473 473 bool sleeping = false;
Note:
See TracChangeset
for help on using the changeset viewer.