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

threaded_container.cpp « base - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 825bce8eb4837a9e6dcad6e64ae5f1282efb45cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "threaded_container.hpp"

ThreadedContainer::ThreadedContainer()
  : m_WaitTime(0), m_IsCancelled(false)
{
}

void ThreadedContainer::Cancel()
{
  threads::ConditionGuard g(m_Cond);
  m_IsCancelled = true;
  m_Cond.Signal(true);
}

bool ThreadedContainer::IsCancelled() const
{
  return m_IsCancelled;
}

double ThreadedContainer::WaitTime() const
{
  return m_WaitTime;
}