LeviLamina
Loading...
Searching...
No Matches
Scheduler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7
8// auto generated forward declare list
9// clang-format off
10class WorkerPool;
11// clang-format on
12
14public:
15 // Scheduler inner types declare
16 // clang-format off
18 // clang-format on
19
20 // Scheduler inner types define
22 public:
23 // member variables
24 // NOLINTBEGIN
26 // NOLINTEND
27
28 public:
29 // prevent constructor by default
33 };
34
35public:
36 // member variables
37 // NOLINTBEGIN
38 ::ll::TypedStorage<4, 4, uint> mTotalFrames;
39 ::ll::TypedStorage<4, 4, uint> mStarvedFrames;
40 ::ll::TypedStorage<4, 4, uint> mPromotionFrames;
41 ::ll::TypedStorage<4, 4, uint> mTargetFPS;
42 ::ll::TypedStorage<4, 4, uint> mEffectiveFPS;
43 ::ll::TypedStorage<4, 4, uint> mFramesOverBound;
44 ::ll::TypedStorage<8, 8, double> mAverageCallbackDuration;
45 ::ll::TypedStorage<8, 8, double> mTotalCoroutineDuration;
46 ::ll::TypedStorage<8, 8, uint64> mTotalRunCoroutines;
47 ::ll::TypedStorage<8, 8, double> mCoroutineTimeLimit;
48 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::WorkerPool>> mCoroutinePool;
49 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mNextStarveCheckTime;
50 ::ll::TypedStorage<4, 4, ::std::thread::id> mThreadID;
51 // NOLINTEND
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 // vIndex: 0
57 virtual ~Scheduler() /*override*/ = default;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI Scheduler(::std::string name, uint FPS);
64
65 MCAPI void processCoroutines(::std::chrono::nanoseconds timeSinceSwap, ::std::chrono::nanoseconds minTimeCap);
66
67 MCAPI void setTargetFPS(uint FPS);
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCAPI void* $ctor(::std::string name, uint FPS);
74 // NOLINTEND
75
76public:
77 // destructor thunk
78 // NOLINTBEGIN
79
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCAPI static void** $vftable();
86 // NOLINTEND
87};
Definition EnableNonOwnerReferences.h:7
Definition Scheduler.h:21
Definition Scheduler.h:13
Definition WorkerPool.h:19
Definition Alias.h:14