[Freeswitch-svn] [commit] r12046 - in freeswitch/trunk/src: . include
FreeSWITCH SVN
anthm at freeswitch.org
Mon Feb 16 05:59:13 PST 2009
Author: anthm
Date: Mon Feb 16 07:59:13 2009
New Revision: 12046
Log:
FSCORE-298
Modified:
freeswitch/trunk/src/include/switch_core.h
freeswitch/trunk/src/switch_loadable_module.c
Modified: freeswitch/trunk/src/include/switch_core.h
==============================================================================
--- freeswitch/trunk/src/include/switch_core.h (original)
+++ freeswitch/trunk/src/include/switch_core.h Mon Feb 16 07:59:13 2009
@@ -1669,7 +1669,7 @@
/*!
\brief Launch a thread
*/
-SWITCH_DECLARE(void) switch_core_launch_thread(void *(*func) (switch_thread_t *, void *), void *obj, switch_memory_pool_t *pool);
+SWITCH_DECLARE(void) switch_core_launch_thread(void *(SWITCH_THREAD_FUNC *func) (switch_thread_t *, void *), void *obj, switch_memory_pool_t *pool);
/*!
\brief Initiate Globals
Modified: freeswitch/trunk/src/switch_loadable_module.c
==============================================================================
--- freeswitch/trunk/src/switch_loadable_module.c (original)
+++ freeswitch/trunk/src/switch_loadable_module.c Mon Feb 16 07:59:13 2009
@@ -77,7 +77,7 @@
static switch_status_t do_shutdown(switch_loadable_module_t *module, switch_bool_t shutdown, switch_bool_t unload, switch_bool_t fail_if_busy, const char **err);
static switch_status_t switch_loadable_module_load_module_ex(char *dir, char *fname, switch_bool_t runtime, switch_bool_t global, const char **err);
-static void *switch_loadable_module_exec(switch_thread_t *thread, void *obj)
+static void *SWITCH_THREAD_FUNC switch_loadable_module_exec(switch_thread_t *thread, void *obj)
{
@@ -99,7 +99,7 @@
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Destroying Pool for %s\n", module->module_interface->module_name);
switch_core_destroy_memory_pool(&pool);
}
- switch_yield(1000000);
+ switch_thread_exit(thread, 0);
return NULL;
}
More information about the Freeswitch-svn
mailing list