co-maps/libs/base/thread_checker.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
206 B
C++
Raw Permalink Normal View History

2025-11-22 13:58:55 +01:00
#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;
}