Divide Framework
0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
PlatformRuntime.cpp
Go to the documentation of this file.
1
2
3
#include <thread>
4
#include "
Headers/PlatformRuntime.h
"
5
6
namespace
Divide::Runtime
7
{
8
9
namespace
detail
10
{
11
static
std::thread::id
g_mainThreadID
;
12
};
13
14
const
std::thread::id&
mainThreadID
() noexcept
15
{
16
return
detail::g_mainThreadID
;
17
}
18
19
void
mainThreadID
(
const
std::thread::id& threadID)
noexcept
20
{
21
detail::g_mainThreadID
= threadID;
22
}
23
24
bool
resetMainThreadID
() noexcept
25
{
26
detail::g_mainThreadID
= {};
27
return
true
;
28
}
29
30
};
//namespace Divide::Runtime
PlatformRuntime.h
Divide::Runtime::detail::g_mainThreadID
static std::thread::id g_mainThreadID
Definition:
PlatformRuntime.cpp:11
Divide::Runtime
Definition:
PlatformRuntime.h:37
Divide::Runtime::resetMainThreadID
bool resetMainThreadID() noexcept
Definition:
PlatformRuntime.cpp:24
Divide::Runtime::mainThreadID
const std::thread::id & mainThreadID() noexcept
Definition:
PlatformRuntime.cpp:14
Source
Platform
PlatformRuntime.cpp
Generated on Fri May 17 2024 16:59:54 for Divide Framework by
1.9.6