CMS 3D CMS Logo

CmsShowTaskExecutor.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Core
4 // Class : CmsShowTaskExecutor
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Fri Jul 11 12:09:47 EDT 2008
11 //
12 
13 // system include files
14 
15 // user include files
17 
18 //
19 // constants, enums and typedefs
20 //
21 
22 //
23 // static data member definitions
24 //
25 
26 //
27 // constructors and destructor
28 //
30 
31 // CmsShowTaskExecutor::CmsShowTaskExecutor(const CmsShowTaskExecutor& rhs)
32 // {
33 // // do actual copying here;
34 // }
35 
37 
38 //
39 // assignment operators
40 //
41 // const CmsShowTaskExecutor& CmsShowTaskExecutor::operator=(const CmsShowTaskExecutor& rhs)
42 // {
43 // //An exception safe implementation is
44 // CmsShowTaskExecutor temp(rhs);
45 // swap(rhs);
46 //
47 // return *this;
48 // }
49 
50 //
51 // member functions
52 //
53 void CmsShowTaskExecutor::addTask(const TaskFunctor& iTask) { m_tasks.push_back(iTask); }
54 
56  if (!m_tasks.empty()) {
58  }
59 }
60 
62  TaskFunctor f = m_tasks.front();
63  m_tasks.pop_front();
64  f();
65 }
66 
68 
69 //
70 // const member functions
71 //
72 
73 //
74 // static member functions
75 //
void startDoingTasks() override
std::function< void()> TaskFunctor
void doNextTaskImp() override
std::deque< TaskFunctor > m_tasks
double f[11][100]
bool moreTasksAvailable() override
void addTask(const TaskFunctor &iTask)