mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Merged fix from cocoa branch -r 831.
git-svn-id: svn://localhost/ardour2/trunk@832 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3ea92ec324
commit
279128c81e
1 changed files with 7 additions and 3 deletions
|
|
@ -4,6 +4,10 @@
|
||||||
#include <pbd/pthread_utils.h>
|
#include <pbd/pthread_utils.h>
|
||||||
#include <pbd/failed_constructor.h>
|
#include <pbd/failed_constructor.h>
|
||||||
|
|
||||||
|
#include "i18n.h"
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
template <typename RequestObject>
|
template <typename RequestObject>
|
||||||
AbstractUI<RequestObject>::AbstractUI (string name, bool with_signal_pipes)
|
AbstractUI<RequestObject>::AbstractUI (string name, bool with_signal_pipes)
|
||||||
: BaseUI (name, with_signal_pipes)
|
: BaseUI (name, with_signal_pipes)
|
||||||
|
|
@ -44,7 +48,7 @@ AbstractUI<RequestObject>::get_request (RequestType rt)
|
||||||
if (rbuf == 0) {
|
if (rbuf == 0) {
|
||||||
/* Cannot happen, but if it does we can't use the error reporting mechanism */
|
/* Cannot happen, but if it does we can't use the error reporting mechanism */
|
||||||
cerr << _("programming error: ")
|
cerr << _("programming error: ")
|
||||||
<< string_compose (X_("no %1-UI request buffer found for thread %2"), name(), pthread_name())
|
<< string_compose ("no %1-UI request buffer found for thread %2", name(), pthread_name())
|
||||||
<< endl;
|
<< endl;
|
||||||
abort ();
|
abort ();
|
||||||
}
|
}
|
||||||
|
|
@ -55,7 +59,7 @@ AbstractUI<RequestObject>::get_request (RequestType rt)
|
||||||
|
|
||||||
if (vec.len[0] == 0) {
|
if (vec.len[0] == 0) {
|
||||||
if (vec.len[1] == 0) {
|
if (vec.len[1] == 0) {
|
||||||
cerr << string_compose (X_("no space in %1-UI request buffer for thread %2"), name(), pthread_name())
|
cerr << string_compose ("no space in %1-UI request buffer for thread %2", name(), pthread_name())
|
||||||
<< endl;
|
<< endl;
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -131,7 +135,7 @@ AbstractUI<RequestObject>::send_request (RequestObject *req)
|
||||||
thread isn't registered!
|
thread isn't registered!
|
||||||
*/
|
*/
|
||||||
cerr << _("programming error: ")
|
cerr << _("programming error: ")
|
||||||
<< string_compose (X_("AbstractUI::send_request() called from %1, but no request buffer exists for that thread"), pthread_name())
|
<< string_compose ("AbstractUI::send_request() called from %1 (%2), but no request buffer exists for that thread", name(), pthread_name())
|
||||||
<< endl;
|
<< endl;
|
||||||
abort ();
|
abort ();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue