mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
FS-6211 more changes
This commit is contained in:
parent
47a7ef557a
commit
430b8fca6b
@ -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 {
|
|||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user