Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
8
libs/base/thread_checker.cpp
Normal file
8
libs/base/thread_checker.cpp
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#include "base/thread_checker.hpp"
|
||||
|
||||
ThreadChecker::ThreadChecker() : m_id(std::this_thread::get_id()) {}
|
||||
|
||||
bool ThreadChecker::CalledOnOriginalThread() const
|
||||
{
|
||||
return std::this_thread::get_id() == m_id;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue