mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
Kernel: Don't disable interrupts while exiting a thread or process
This was another vestige from a long time ago, when exiting a thread would mutate global data structures that were only protected by the interrupt flag.
This commit is contained in:
parent
8eeb8db2ed
commit
4aa58aaab5
Notes:
sideshowbarker
2024-07-18 21:55:40 +09:00
Author: https://github.com/awesomekling
Commit: 4aa58aaab5
3 changed files with 0 additions and 4 deletions
|
@ -98,7 +98,6 @@ int Process::sys$create_thread(void* (*entry)(void*), Userspace<const Syscall::S
|
|||
void Process::sys$exit_thread(Userspace<void*> exit_value)
|
||||
{
|
||||
REQUIRE_PROMISE(thread);
|
||||
cli();
|
||||
|
||||
if (this->thread_count() == 1) {
|
||||
// If this is the last thread, instead kill the process.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue