mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-01 21:54:39 -04:00
Mostly working on OSX /w rtaudio now
Looks like just some priority tweaks remain
This commit is contained in:
@@ -47,6 +47,14 @@ bool CubicSDR::OnInit() {
|
||||
|
||||
AppFrame *appframe = new AppFrame();
|
||||
|
||||
int main_policy;
|
||||
struct sched_param main_param;
|
||||
|
||||
main_policy = SCHED_OTHER;
|
||||
main_param.sched_priority = sched_get_priority_min(SCHED_OTHER);
|
||||
|
||||
pthread_setschedparam(pthread_self(), main_policy, &main_param);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user