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: 0a6ea92444ca914ae721e0ed97a5f5c2588cab77 (plain)
1
2
3
4
5
#include "base/thread_checker.hpp"

ThreadChecker::ThreadChecker() : m_id(this_thread::get_id()) {}

bool ThreadChecker::CalledOnOriginalThread() const { return this_thread::get_id() == m_id; }