Ardour  8.12
rt_tasklist.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Robin Gareus <robin@gareus.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef _ardour_rt_tasklist_h_
20 #define _ardour_rt_tasklist_h_
21 
22 #include <boost/function.hpp>
23 #include <vector>
24 
26 #include "ardour/rt_task.h"
27 
28 namespace ARDOUR
29 {
30 class Graph;
31 
33 {
34 public:
35  RTTaskList (std::shared_ptr<Graph>);
36 
38  void process ();
39  void push_back (boost::function<void ()> fn);
40 
41  std::vector<RTTask> const& tasks () const { return _tasks; }
42 
43 private:
44  std::vector<RTTask> _tasks;
45  std::shared_ptr<Graph> _graph;
46 };
47 
48 } // namespace ARDOUR
49 #endif
std::vector< RTTask > const & tasks() const
Definition: rt_tasklist.h:41
std::vector< RTTask > _tasks
Definition: rt_tasklist.h:44
RTTaskList(std::shared_ptr< Graph >)
void push_back(boost::function< void()> fn)
std::shared_ptr< Graph > _graph
Definition: rt_tasklist.h:45
#define LIBARDOUR_API
DebugBits Graph