Browse Source

Added curly braces.

tags/0.126.0
Yuri 7 years ago
parent
commit
51d8d22a9b
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libjack/thread.c

+ 4
- 2
libjack/thread.c View File

@@ -300,8 +300,9 @@ jack_drop_real_time_scheduling (pthread_t thread)
strerror (errno));
return -1;
}
if (policy == SCHED_OTHER)
if (policy == SCHED_OTHER) {
return 0; // already
}

memset (&rtparam, 0, sizeof(rtparam));

@@ -320,8 +321,9 @@ jack_acquire_real_time_scheduling (pthread_t thread, int priority)
struct sched_param rtparam;
int x;

if (jack_process_already_has_real_time_scheduling (priority) != 0)
if (jack_process_already_has_real_time_scheduling (priority) != 0) {
return 0;
}

memset (&rtparam, 0, sizeof(rtparam));
rtparam.sched_priority = priority;


Loading…
Cancel
Save