print out a stacktrace if there is no room to send a request to the UI thread

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12797 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-06-20 15:01:29 +00:00
parent 70ed264f5a
commit 7c3efef892
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@
#include <pbd/abstract_ui.h>
#include <pbd/pthread_utils.h>
#include <pbd/failed_constructor.h>
#include <pbd/stacktrace.h>
#include "i18n.h"
@ -102,6 +103,7 @@ AbstractUI<RequestObject>::get_request (RequestType rt)
if (vec.len[1] == 0) {
cerr << string_compose ("no space in %1-UI request buffer for thread %2", name(), pthread_name())
<< endl;
PBD::stacktrace (std::cerr, 20);
return 0;
} else {
vec.buf[1]->type = rt;