mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
Kernel: When a lock is busy, donate remaining process ticks to lock holder.
Since we know who's holding the lock, and we're gonna have to yield anyway, we can just ask the scheduler to donate any remaining ticks to that process.
This commit is contained in:
parent
4df92709c8
commit
5582a0a254
15 changed files with 51 additions and 15 deletions
|
@ -17,6 +17,7 @@ public:
|
|||
static void pick_next_and_switch_now();
|
||||
static void switch_now();
|
||||
static bool yield();
|
||||
static bool donate_to(Process*, const char* reason);
|
||||
static bool context_switch(Process&);
|
||||
static void prepare_to_modify_tss(Process&);
|
||||
static Process* colonel();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue