Ignore:
File:
1 edited

Legend:

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

    rac9e79d rabf6c01  
    6464IRQ_SPINLOCK_INITIALIZE(tasks_lock);
    6565
    66 /** Ordered dictionary of active tasks.
     66/** Ordered dictionary of active tasks by task ID.
     67 *
     68 * Members are task_t structures.
    6769 *
    6870 * The task is guaranteed to exist after it was found in the @c tasks
     
    197199task_t *task_create(as_t *as, const char *name)
    198200{
    199         task_t *task = (task_t *) slab_alloc(task_cache, 0);
    200         if (task == NULL) {
     201        task_t *task = (task_t *) slab_alloc(task_cache, FRAME_ATOMIC);
     202        if (!task)
    201203                return NULL;
    202         }
    203204
    204205        task_create_arch(task);
     
    281282         */
    282283        task_destroy_arch(task);
    283 
    284         /*
    285          * Free up dynamically allocated state.
    286          */
    287         futex_task_deinit(task);
    288284
    289285        /*
     
    631627{
    632628        task_kill_self(notify);
    633 
    634         /* Unreachable */
    635         return EOK;
     629        unreachable();
    636630}
    637631
Note: See TracChangeset for help on using the changeset viewer.