提交 430b8fca authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-6211 more changes

上级 47a7ef55
...@@ -37,6 +37,7 @@ struct apr_threadattr_t { ...@@ -37,6 +37,7 @@ struct apr_threadattr_t {
apr_pool_t *pool; apr_pool_t *pool;
apr_int32_t detach; apr_int32_t detach;
apr_size_t stacksize; apr_size_t stacksize;
int priority;
}; };
struct apr_threadkey_t { struct apr_threadkey_t {
......
...@@ -601,6 +601,7 @@ struct apr_threadattr_t { ...@@ -601,6 +601,7 @@ struct apr_threadattr_t {
apr_pool_t *pool; apr_pool_t *pool;
apr_int32_t detach; apr_int32_t detach;
apr_size_t stacksize; apr_size_t stacksize;
int priority;
}; };
#endif #endif
...@@ -610,9 +611,9 @@ SWITCH_DECLARE(switch_status_t) switch_threadattr_create(switch_threadattr_t ** ...@@ -610,9 +611,9 @@ SWITCH_DECLARE(switch_status_t) switch_threadattr_create(switch_threadattr_t **
switch_status_t status; switch_status_t status;
if ((status = apr_threadattr_create(new_attr, pool)) == SWITCH_STATUS_SUCCESS) { if ((status = apr_threadattr_create(new_attr, pool)) == SWITCH_STATUS_SUCCESS) {
#ifndef WIN32
(*new_attr)->priority = SWITCH_PRI_LOW; (*new_attr)->priority = SWITCH_PRI_LOW;
#endif
} }
return status; return status;
...@@ -630,9 +631,9 @@ SWITCH_DECLARE(switch_status_t) switch_threadattr_stacksize_set(switch_threadatt ...@@ -630,9 +631,9 @@ SWITCH_DECLARE(switch_status_t) switch_threadattr_stacksize_set(switch_threadatt
SWITCH_DECLARE(switch_status_t) switch_threadattr_priority_set(switch_threadattr_t *attr, switch_thread_priority_t priority) SWITCH_DECLARE(switch_status_t) switch_threadattr_priority_set(switch_threadattr_t *attr, switch_thread_priority_t priority)
{ {
#ifndef WIN32
attr->priority = priority; attr->priority = priority;
#endif
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论