13
0

MCP: register thread with GUI and create session event pool

git-svn-id: svn://localhost/ardour2/branches/3.0@11853 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-04-09 16:26:44 +00:00
parent 57a046804c
commit 62afe207d2
2 changed files with 9 additions and 0 deletions

View File

@ -130,6 +130,13 @@ MackieControlProtocol::~MackieControlProtocol()
DEBUG_TRACE (DEBUG::MackieControl, "finished ~MackieControlProtocol::MackieControlProtocol\n");
}
void
MackieControlProtocol::thread_init ()
{
PBD::notify_gui_about_thread_creation (X_("gui"), pthread_self(), X_("MackieControl"), 2048);
ARDOUR::SessionEvent::create_per_thread_pool (X_("MackieControl"), 128);
}
Mackie::Surface&
MackieControlProtocol::surface()
{

View File

@ -373,6 +373,8 @@ class MackieControlProtocol
void do_request (MackieControlUIRequest*);
int stop ();
void thread_init ();
private:
void port_connected_or_disconnected (std::string, std::string, bool);