提交 06469a66 authored 作者: Jeff Lenk's avatar Jeff Lenk

fix windows build

上级 5d783134
...@@ -608,6 +608,9 @@ SWITCH_DECLARE(void) switch_core_set_globals(void) ...@@ -608,6 +608,9 @@ SWITCH_DECLARE(void) switch_core_set_globals(void)
static int32_t set_priority(void) static int32_t set_priority(void)
{ {
#ifdef WIN32
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
#else
#ifdef USE_SCHED_SETSCHEDULER #ifdef USE_SCHED_SETSCHEDULER
/* /*
* Try to use a round-robin scheduler * Try to use a round-robin scheduler
...@@ -637,7 +640,7 @@ static int32_t set_priority(void) ...@@ -637,7 +640,7 @@ static int32_t set_priority(void)
return -1; return -1;
} }
#endif #endif
#endif
return 0; return 0;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论