Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/task.c

    r55b77d9 r473d5d2  
    155155        mutex_initialize(&task->futexes_lock, MUTEX_PASSIVE);
    156156       
    157         list_initialize(&task->threads);
    158         list_initialize(&task->sync_boxes);
     157        list_initialize(&task->th_head);
     158        list_initialize(&task->sync_box_head);
    159159       
    160160        ipc_answerbox_init(&task->answerbox, task);
     
    435435       
    436436        /* Current values of threads */
    437         list_foreach(task->threads, cur) {
     437        link_t *cur;
     438        for (cur = task->th_head.next; cur != &task->th_head; cur = cur->next) {
    438439                thread_t *thread = list_get_instance(cur, thread_t, th_link);
    439440               
     
    467468         */
    468469       
    469         list_foreach(task->threads, cur) {
     470        link_t *cur;
     471        for (cur = task->th_head.next; cur != &task->th_head; cur = cur->next) {
    470472                thread_t *thread = list_get_instance(cur, thread_t, th_link);
    471473                bool sleeping = false;
Note: See TracChangeset for help on using the changeset viewer.