Ardour  9.0-pre0-582-g084a23a80d
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 <vector>
23 
25 #include "ardour/rt_task.h"
26 
27 namespace ARDOUR
28 {
29 class Graph;
30 
32 {
33 public:
34  RTTaskList (std::shared_ptr<Graph>);
35 
37  void process ();
38  void push_back (std::function<void ()> fn);
39 
40  std::vector<RTTask> const& tasks () const { return _tasks; }
41 
42 private:
43  std::vector<RTTask> _tasks;
44  std::shared_ptr<Graph> _graph;
45 };
46 
47 } // namespace ARDOUR
48 #endif
void push_back(std::function< void()> fn)
std::vector< RTTask > const & tasks() const
Definition: rt_tasklist.h:40
std::vector< RTTask > _tasks
Definition: rt_tasklist.h:43
RTTaskList(std::shared_ptr< Graph >)
std::shared_ptr< Graph > _graph
Definition: rt_tasklist.h:44
#define LIBARDOUR_API
DebugBits Graph