aboutsummaryrefslogtreecommitdiff
path: root/libs/base/thread_checker.cpp
blob: 06c36917a164fb0f92f73345e81ca982d7d14991 (plain) (blame)
1
2
3
4
5
6
7
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;
}