mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Another partial revert of 4998b114ea, fix mingw builds
This commit is contained in:
parent
57fc904004
commit
8929147566
1 changed files with 1 additions and 1 deletions
|
|
@ -443,7 +443,7 @@ pbd_set_thread_priority (pthread_t thread, int policy, int priority)
|
||||||
DEBUG_TRACE (PBD::DEBUG::Threads, string_compose ("Change '%1' to policy = %2 priority = %3\n", pthread_name(), policy, param.sched_priority));
|
DEBUG_TRACE (PBD::DEBUG::Threads, string_compose ("Change '%1' to policy = %2 priority = %3\n", pthread_name(), policy, param.sched_priority));
|
||||||
|
|
||||||
#ifdef PLATFORM_WINDOWS
|
#ifdef PLATFORM_WINDOWS
|
||||||
if (thread.p != 0 && param.sched_priority >= 12) {
|
- if (is_pthread_active (thread) && param.sched_priority >= 12) {
|
||||||
if (set_win_set_realtime_policy (thread, param.sched_priority)) {
|
if (set_win_set_realtime_policy (thread, param.sched_priority)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue