Code style fixes for FreeBSD support pull request.
This commit is contained in:
parent
9c0fe73102
commit
10df3ec227
3 changed files with 18 additions and 16 deletions
|
@ -115,7 +115,7 @@ void Platform::setThreadPriority(int priority)
|
|||
|
||||
setpriority(PRIO_PROCESS, 0, prio);
|
||||
|
||||
#ifdef SCHED_IDLE
|
||||
# ifdef SCHED_IDLE
|
||||
if (priority == 0) {
|
||||
sched_param param;
|
||||
param.sched_priority = 0;
|
||||
|
@ -124,5 +124,5 @@ void Platform::setThreadPriority(int priority)
|
|||
sched_setscheduler(0, SCHED_BATCH, ¶m);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
# endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue