FS-6211 more changes

This commit is contained in:
Anthony Minessale 2014-03-13 13:00:06 -05:00
parent 47a7ef557a
commit 430b8fca6b
2 changed files with 6 additions and 4 deletions

View File

@ -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 {

View File

@ -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 **
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
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;
} }