mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-16 08:04:23 -04:00
kern/KScheduler: implement special yields
This commit is contained in:
parent
ca9327a120
commit
4a7ce9dd75
3 changed files with 179 additions and 3 deletions
|
@ -185,6 +185,8 @@ namespace ams::kern {
|
|||
constexpr KProcessAddress GetProcessLocalRegionAddress() const { return this->plr_address; }
|
||||
|
||||
void AddCpuTime(s64 diff) { this->cpu_time += diff; }
|
||||
|
||||
constexpr s64 GetScheduledCount() const { return this->schedule_count; }
|
||||
void IncrementScheduledCount() { ++this->schedule_count; }
|
||||
|
||||
void IncrementThreadCount();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue