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

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

#include "condition.hpp"
#include "timer.hpp"

struct ThreadedContainer
{
protected:

  my::Timer m_Timer;
  double m_WaitTime;

  mutable threads::Condition m_Cond;
  bool m_IsCancelled;

public:

  ThreadedContainer();

  void Cancel();
  bool IsCancelled() const;

  double WaitTime() const;
};