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 //
CmsShowTaskExecutorBase::requestNextTask
void requestNextTask()
Definition: CmsShowTaskExecutorBase.cc:63
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
CmsShowTaskExecutor::~CmsShowTaskExecutor
~CmsShowTaskExecutor() override
Definition: CmsShowTaskExecutor.cc:36
CmsShowTaskExecutor.h
CmsShowTaskExecutor::m_tasks
std::deque< TaskFunctor > m_tasks
Definition: CmsShowTaskExecutor.h:55
CmsShowTaskExecutor::moreTasksAvailable
bool moreTasksAvailable() override
Definition: CmsShowTaskExecutor.cc:67
CmsShowTaskExecutor::CmsShowTaskExecutor
CmsShowTaskExecutor()
Definition: CmsShowTaskExecutor.cc:29
CmsShowTaskExecutor::doNextTaskImp
void doNextTaskImp() override
Definition: CmsShowTaskExecutor.cc:61
CmsShowTaskExecutor::startDoingTasks
void startDoingTasks() override
Definition: CmsShowTaskExecutor.cc:55
CmsShowTaskExecutor::TaskFunctor
std::function< void()> TaskFunctor
Definition: CmsShowTaskExecutor.h:35
CmsShowTaskExecutor::addTask
void addTask(const TaskFunctor &iTask)
Definition: CmsShowTaskExecutor.cc:53