mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:18:12 +00:00
Kernel: Disable big process lock for sys$yield()
This commit is contained in:
parent
5c10fb4007
commit
8f01a8b741
2 changed files with 3 additions and 3 deletions
|
@ -10,9 +10,9 @@ namespace Kernel {
|
|||
|
||||
KResultOr<FlatPtr> Process::sys$yield()
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
REQUIRE_PROMISE(stdio);
|
||||
Thread::current()->yield_and_release_relock_big_lock();
|
||||
Thread::current()->yield_assuming_not_holding_big_lock();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue