summaryrefslogtreecommitdiff
path: root/Kernel/ThreadTracer.h
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2020-07-03 05:19:50 -0600
committerAndreas Kling <kling@serenityos.org>2020-07-03 19:32:34 +0200
commite373e5f007956e59d8efca1fe74ce0e84355b27b (patch)
tree3726e7ce54397db0b460c94d0b6b954550589a32 /Kernel/ThreadTracer.h
parenta308b176cef0dd109a1a0e7b8e0e2f546dc8321e (diff)
downloadserenity-e373e5f007956e59d8efca1fe74ce0e84355b27b.zip
Kernel: Fix signal delivery
When delivering urgent signals to the current thread we need to check if we should be unblocked, and if not we need to yield to another process. We also need to make sure that we suppress context switches during Process::exec() so that we don't clobber the registers that it sets up (eip mainly) by a context switch. To be able to do that we add the concept of a critical section, which are similar to Process::m_in_irq but different in that they can be requested at any time. Calls to Scheduler::yield and Scheduler::donate_to will return instantly without triggering a context switch, but the processor will then asynchronously trigger a context switch once the critical section is left.
Diffstat (limited to 'Kernel/ThreadTracer.h')
0 files changed, 0 insertions, 0 deletions