Changes in kernel/generic/src/proc/task.c [473d5d2:55b77d9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/task.c
r473d5d2 r55b77d9 155 155 mutex_initialize(&task->futexes_lock, MUTEX_PASSIVE); 156 156 157 list_initialize(&task->th _head);158 list_initialize(&task->sync_box _head);157 list_initialize(&task->threads); 158 list_initialize(&task->sync_boxes); 159 159 160 160 ipc_answerbox_init(&task->answerbox, task); … … 435 435 436 436 /* Current values of threads */ 437 link_t *cur; 438 for (cur = task->th_head.next; cur != &task->th_head; cur = cur->next) { 437 list_foreach(task->threads, cur) { 439 438 thread_t *thread = list_get_instance(cur, thread_t, th_link); 440 439 … … 468 467 */ 469 468 470 link_t *cur; 471 for (cur = task->th_head.next; cur != &task->th_head; cur = cur->next) { 469 list_foreach(task->threads, cur) { 472 470 thread_t *thread = list_get_instance(cur, thread_t, th_link); 473 471 bool sleeping = false;
Note:
See TracChangeset
for help on using the changeset viewer.