switch_threadattr_t *thd_attr = NULL;
switch_memory_pool_t *pool;
switch_thread_t *thread;
+ sofia_profile_t *profile = (*dep)->profile;
switch_core_new_memory_pool(&pool);
*dep = NULL;
de->pool = pool;
+ switch_mutex_lock(profile->ireg_mutex);
switch_threadattr_create(&thd_attr, de->pool);
switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
switch_thread_create(&thread,
sofia_msg_thread_run_once,
de,
de->pool);
-
+ switch_mutex_unlock(profile->ireg_mutex);
}
gethostname(runtime.hostname, sizeof(runtime.hostname));
runtime.max_db_handles = 50;
- runtime.db_handle_timeout = 5000000;;
+ runtime.db_handle_timeout = 5000000;
runtime.runlevel++;
runtime.sql_buffer_len = 1024 * 32;