The Pedigree Project 0.1
SchedulerTimerDispatchCleanup.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 KERNEL_MACHINE_SCHEDULERTIMERDISPATCHCLEANUP_H
9#define KERNEL_MACHINE_SCHEDULERTIMERDISPATCHCLEANUP_H
10
11#include "pedigree/kernel/compiler.h"
12#include "pedigree/kernel/machine/SchedulerTimerHandlerSlot.h"
13#include "pedigree/kernel/process/AtomicStateCleanup.h"
14
15class Thread;
16
25class EXPORTED_PUBLIC SchedulerTimerDispatchCleanup {
26 public:
29
30 private:
33
34 static void abandon(void* context);
35 void release();
36
38 Thread* m_Thread;
40 bool m_Active;
41};
42
43#endif