The Pedigree Project 0.1
SchedulerWorkerWake.h
1/*
2 * Copyright (c) 2026, Pedigree Developers
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted.
6 */
7
8#ifndef PEDIGREE_KERNEL_PROCESS_SCHEDULERWORKERWAKE_H
9#define PEDIGREE_KERNEL_PROCESS_SCHEDULERWORKERWAKE_H
10#include "pedigree/kernel/Atomic.h"
11
13class WaitQueue;
14
17 public:
18 SchedulerWorkerWake() : m_Pending(0), m_pWaiters(nullptr), m_pNext(nullptr) {}
19
20 private:
21 friend class PerProcessorScheduler;
22
23 Atomic<size_t> m_Pending;
24 WaitQueue* m_pWaiters;
25 SchedulerWorkerWake* m_pNext;
26};
27
28#endif