]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6211 more changes
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 13 Mar 2014 18:00:06 +0000 (13:00 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 13 Mar 2014 18:00:10 +0000 (13:00 -0500)
libs/apr/include/arch/win32/apr_arch_threadproc.h
src/switch_apr.c

index 7af8ab6869bf5755c9db8286bade40ea840331d1..056090bf11c7bce0bf3219c0343588649ccec53a 100644 (file)
@@ -37,6 +37,7 @@ struct apr_threadattr_t {
     apr_pool_t *pool;
     apr_int32_t detach;
     apr_size_t stacksize;
+    int priority;
 };
 
 struct apr_threadkey_t {
index 57a6d017a278d6b54acad0c9886076ea3b8ff373..4e595bf9b8e1c4d576994a1d4a9c91b683347735 100644 (file)
@@ -601,6 +601,7 @@ struct apr_threadattr_t {
     apr_pool_t *pool;
     apr_int32_t detach;
     apr_size_t stacksize;
+       int priority;
 };
 #endif
 
@@ -610,9 +611,9 @@ SWITCH_DECLARE(switch_status_t) switch_threadattr_create(switch_threadattr_t **
        switch_status_t status;
 
        if ((status = apr_threadattr_create(new_attr, pool)) == SWITCH_STATUS_SUCCESS) {
-#ifndef WIN32
+
                (*new_attr)->priority = SWITCH_PRI_LOW;
-#endif
+
        }
 
        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)
 {
-#ifndef WIN32
+
        attr->priority = priority;
-#endif
+
        return SWITCH_STATUS_SUCCESS;
 }