LeviLamina
Loading...
Searching...
No Matches
ThreadOwner.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
#include "mc/deps/application/common/utility/ThreadOwnerBehavior.h"
5
6
namespace
Bedrock::Application {
7
8
template
<
typename
T0, ThreadOwnerBehavior WrongThreadBehavior = ThreadOwnerBehavior::Assert>
9
class
ThreadOwner
{
10
public
:
11
T0 mObject;
12
bool
mThreadIdInitialized{};
13
std::thread::id mThreadId;
14
uint mThreadCheckIndex{};
15
16
public
:
17
// prevent constructor by default
18
ThreadOwner
& operator=(
ThreadOwner
const
&) =
delete
;
19
ThreadOwner
(
ThreadOwner
const
&) =
delete
;
20
ThreadOwner
() =
delete
;
21
};
22
23
}
// namespace Bedrock::Application
Bedrock::Application::ThreadOwner
Definition
ThreadOwner.h:9
src
mc
util
ThreadOwner.h
Generated on Wed Aug 27 2025 11:40:15 for LeviLamina by
1.12.0