mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
9 lines
206 B
C++
9 lines
206 B
C++
#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;
|
|
}
|