Ignore:
File:
1 edited

Legend:

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

    r5d0500c r473d5d2  
    5050#include <ipc/ipc.h>
    5151#include <ipc/ipcrsc.h>
    52 #include <ipc/event.h>
    5352#include <print.h>
    5453#include <errno.h>
     
    5857#include <syscall/copy.h>
    5958#include <macros.h>
     59#include <ipc/event.h>
    6060
    6161/** Spinlock protecting the tasks_tree AVL tree. */
     
    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);
     
    201201        task->ipc_info.irq_notif_received = 0;
    202202        task->ipc_info.forwarded = 0;
    203 
    204         event_task_init(task);
    205203       
    206204#ifdef CONFIG_UDEBUG
     
    437435       
    438436        /* 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) {
    440439                thread_t *thread = list_get_instance(cur, thread_t, th_link);
    441440               
     
    469468         */
    470469       
    471         list_foreach(task->threads, cur) {
     470        link_t *cur;
     471        for (cur = task->th_head.next; cur != &task->th_head; cur = cur->next) {
    472472                thread_t *thread = list_get_instance(cur, thread_t, th_link);
    473473                bool sleeping = false;
Note: See TracChangeset for help on using the changeset viewer.