From 65c97361a959a4b8e4be20a189338cc6480ebe3c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 10 Jan 2011 17:31:34 +0000 Subject: [PATCH] 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 --- libs/ardour/graph.cc | 5 +++++ 1 file changed, 5 insertions(+) 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;