Ignore:
File:
1 edited

Legend:

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

    rabf6c01 rac9e79d  
    6464IRQ_SPINLOCK_INITIALIZE(tasks_lock);
    6565
    66 /** Ordered dictionary of active tasks by task ID.
    67  *
    68  * Members are task_t structures.
     66/** Ordered dictionary of active tasks.
    6967 *
    7068 * The task is guaranteed to exist after it was found in the @c tasks
     
    199197task_t *task_create(as_t *as, const char *name)
    200198{
    201         task_t *task = (task_t *) slab_alloc(task_cache, FRAME_ATOMIC);
    202         if (!task)
     199        task_t *task = (task_t *) slab_alloc(task_cache, 0);
     200        if (task == NULL) {
    203201                return NULL;
     202        }
    204203
    205204        task_create_arch(task);
     
    284283
    285284        /*
     285         * Free up dynamically allocated state.
     286         */
     287        futex_task_deinit(task);
     288
     289        /*
    286290         * Drop our reference to the address space.
    287291         */
     
    627631{
    628632        task_kill_self(notify);
    629         unreachable();
     633
     634        /* Unreachable */
     635        return EOK;
    630636}
    631637
Note: See TracChangeset for help on using the changeset viewer.