Welcome to mirror list, hosted at ThFree Co, Russian Federation.

thread_checker.cpp « base - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 84688b19b84e96b1e6988d07342892e43581bf47 (plain)
1
2
3
4
5
#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; }