Changeset 78acbc72 in mainline for kernel/generic/src/proc/task.c


Ignore:
Timestamp:
2023-02-07T18:43:26Z (22 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba25c4b
Parents:
0366d09d
Message:

Remove unused thread_interrupted(), make thread_interrupt() useful

File:
1 edited

Legend:

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

    r0366d09d r78acbc72  
    536536
    537537        list_foreach(task->threads, th_link, thread_t, thread) {
    538                 bool sleeping = false;
    539 
    540                 irq_spinlock_lock(&thread->lock, false);
    541 
    542                 thread->interrupted = true;
    543                 if (thread->state == Sleeping)
    544                         sleeping = true;
    545 
    546                 irq_spinlock_unlock(&thread->lock, false);
    547 
    548                 if (sleeping)
    549                         waitq_interrupt_sleep(thread);
     538                thread_interrupt(thread, false);
    550539        }
    551540
Note: See TracChangeset for help on using the changeset viewer.