Ignore:
File:
1 edited

Legend:

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

    rdf58e44 r1e9f8ab  
    449449static void task_kill_internal(task_t *task)
    450450{
     451        link_t *cur;
     452       
     453        /*
     454         * Interrupt all threads.
     455         */
    451456        irq_spinlock_lock(&task->lock, false);
    452         irq_spinlock_lock(&threads_lock, false);
    453        
    454         /*
    455          * Interrupt all threads.
    456          */
    457        
    458         link_t *cur;
    459457        for (cur = task->th_head.next; cur != &task->th_head; cur = cur->next) {
    460458                thread_t *thread = list_get_instance(cur, thread_t, th_link);
     
    473471        }
    474472       
    475         irq_spinlock_unlock(&threads_lock, false);
    476473        irq_spinlock_unlock(&task->lock, false);
    477474}
Note: See TracChangeset for help on using the changeset viewer.