setting general schedule priority for performance on Mac.

This commit is contained in:
David CARLIER 2021-03-09 18:31:15 +00:00
parent 791c5c171d
commit 5fab0fa51f

View File

@ -1403,6 +1403,14 @@ int main(int argc, char **argv_orig, char **envp) {
set_scheduler_mode(SCHEDULER_MODE_LOW_LATENCY);
#endif
#ifdef __APPLE__
if (pthread_set_qos_class_self_np(QOS_CLASS_USER_INTERACTIVE, 0) != 0) {
WARNF("general thread priority settings failed");
}
#endif
init_count_class16();
if (afl->is_main_node && check_main_node_exists(afl) == 1) {