summaryrefslogtreecommitdiff
path: root/libs/ardour/graph.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-01-10 17:31:34 +0000
committerCarl Hetherington <carl@carlh.net>2011-01-10 17:31:34 +0000
commit65c97361a959a4b8e4be20a189338cc6480ebe3c (patch)
treefc206604d1d605809e19f3925fabe33744f9eecf /libs/ardour/graph.cc
parentdd7caa01654dc58d3259eeed0e0f2b8ddb293b66 (diff)
Somewhat hacky fix to stop the graph code allocating in the RT thread.
git-svn-id: svn://localhost/ardour2/branches/3.0@8491 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/graph.cc')
-rw-r--r--libs/ardour/graph.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/graph.cc b/libs/ardour/graph.cc
index 9549a9dcc9..0d3749aff0 100644
--- a/libs/ardour/graph.cc
+++ b/libs/ardour/graph.cc
@@ -49,6 +49,11 @@ Graph::Graph (Session & session)
{
pthread_mutex_init( &_trigger_mutex, NULL);
+ /* XXX: rather hacky `fix' to stop _trigger_queue.push_back() allocating
+ memory in the RT thread.
+ */
+ _trigger_queue.reserve (8192);
+
_execution_tokens = 0;
_current_chain = 0;