The Pedigree Project 0.1
InterruptTimeAccounting.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_INTERRUPTTIMEACCOUNTING_H
9#define PEDIGREE_KERNEL_PROCESS_INTERRUPTTIMEACCOUNTING_H
10#include <config.h>
11
12class Thread;
13
22 public:
23 explicit InterruptTimeAccounting(bool fromUserspace);
25
27 static void finishUserReturn(Thread* thread);
28
29 private:
30 Thread* m_pThread;
31 bool m_bFromUserspace;
32
34 InterruptTimeAccounting& operator=(const InterruptTimeAccounting&) = delete;
35};
36
37#endif
static void finishUserReturn(Thread *thread)