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>
5
6namespace Divide::Runtime
7{
8
9namespace detail
10{
11 static std::thread::id g_mainThreadID;
12};
13
14const std::thread::id& mainThreadID() noexcept
15{
17}
18
19void mainThreadID(const std::thread::id& threadID) noexcept
20{
21 detail::g_mainThreadID = threadID;
22}
23
24bool resetMainThreadID() noexcept
25{
27 return true;
28}
29
30}; //namespace Divide::Runtime
static std::thread::id g_mainThreadID
bool resetMainThreadID() noexcept
const std::thread::id & mainThreadID() noexcept