LeviLamina
Loading...
Searching...
No Matches
ThreadOwner.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace Bedrock::Application {
6
7template <typename T0>
9public:
10 T0 mObject;
11 bool mThreadIdInitialized{};
12 std::thread::id mThreadId;
13 uint mThreadCheckIndex{};
14
15public:
16 // prevent constructor by default
17 ThreadOwner& operator=(ThreadOwner const&) = delete;
18 ThreadOwner(ThreadOwner const&) = delete;
19 ThreadOwner() = delete;
20};
21
22} // namespace Bedrock::Application
Definition ThreadOwner.h:8