mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 12:45:45 +01:00
Allow to run IOTasklist without rt permissions
This commit is contained in:
parent
576403c4cb
commit
70898a676b
1 changed files with 9 additions and 1 deletions
|
|
@ -34,6 +34,8 @@
|
|||
#include "ardour/process_thread.h"
|
||||
#include "ardour/session_event.h"
|
||||
|
||||
#include "pbd/i18n.h"
|
||||
|
||||
using namespace ARDOUR;
|
||||
|
||||
IOTaskList::IOTaskList (uint32_t n_threads)
|
||||
|
|
@ -67,7 +69,13 @@ IOTaskList::IOTaskList (uint32_t n_threads)
|
|||
_workers.resize (_n_threads);
|
||||
for (uint32_t i = 0; i < _n_threads; ++i) {
|
||||
if (pthread_create (&_workers[i], &attr, &_worker_thread, this)) {
|
||||
throw failed_constructor ();
|
||||
if (pthread_create (&_workers[i], NULL, &_worker_thread, this)) {
|
||||
std::cerr << "Failed to start IOTaskList thread\n";
|
||||
throw failed_constructor ();
|
||||
}
|
||||
if (i == 0) {
|
||||
PBD::warning << _("IOTaskList: cannot acquire realtime permissions.") << endmsg;
|
||||
}
|
||||
}
|
||||
}
|
||||
pthread_attr_destroy (&attr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue