git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@338 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2006-01-13 02:05:39 +00:00
parent dbbbbcab1d
commit 980a1ec470
5 changed files with 13 additions and 8 deletions

View File

@@ -493,6 +493,10 @@ static void *switch_core_service_thread(switch_thread *thread, void *obj)
channel = switch_core_session_get_channel(session);
assert(channel != NULL);
#ifdef WTF
data->running = 0;
return NULL;
#endif
while(data->running > 0) {
switch(switch_core_session_read_frame(session, &read_frame, -1, stream_id)) {
@@ -506,7 +510,7 @@ static void *switch_core_service_thread(switch_thread *thread, void *obj)
break;
}
switch_yield(100);
switch_yield(10000);
}
data->running = 0;
@@ -1791,7 +1795,7 @@ SWITCH_DECLARE(void) switch_core_session_thread_launch(switch_core_session *sess
SWITCH_DECLARE(void) switch_core_session_launch_thread(switch_core_session *session, switch_thread_start_t func, void *obj)
{
switch_thread *thread;
switch_threadattr_t *thd_attr;;
switch_threadattr_t *thd_attr = NULL;
switch_threadattr_create(&thd_attr, session->pool);
switch_threadattr_detach_set(thd_attr, 1);