feat: further kernel power and power optimizations
This commit is contained in:
@@ -116,6 +116,11 @@ namespace Sched {
|
||||
// timeoutMs == 0 means wait indefinitely.
|
||||
void BlockOnObject(void* object, uint64_t timeoutMs = 0);
|
||||
|
||||
// Atomically check a condition under the scheduler lock and block only if
|
||||
// it still holds. This prevents lost wakeups for edge-triggered waiters.
|
||||
bool BlockOnObjectIf(void* object, uint64_t timeoutMs,
|
||||
bool (*shouldBlock)(void*), void* context);
|
||||
|
||||
// BSP-only scheduler housekeeping: wake expired sleepers and reclaim
|
||||
// terminated process resources.
|
||||
void RunBspMaintenance();
|
||||
|
||||
Reference in New Issue
Block a user