diff --git a/src/switch_core.c b/src/switch_core.c index 87bea30777..30e33781d4 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -608,6 +608,9 @@ SWITCH_DECLARE(void) switch_core_set_globals(void) static int32_t set_priority(void) { +#ifdef WIN32 + SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); +#else #ifdef USE_SCHED_SETSCHEDULER /* * Try to use a round-robin scheduler @@ -637,7 +640,7 @@ static int32_t set_priority(void) return -1; } #endif - +#endif return 0; }