simplify switch_core_service_session to protect against a race condition

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10136 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-10-23 23:48:11 +00:00
parent e520638b92
commit 42dd42ebb6
7 changed files with 42 additions and 52 deletions
+3 -6
View File
@@ -740,18 +740,15 @@ SWITCH_DECLARE(void) switch_core_session_launch_thread(_In_ switch_core_session_
/*!
\brief Signal a thread using a thread session to terminate
\param thread_session the thread_session to indicate to
\param session the session to indicate to
*/
SWITCH_DECLARE(void) switch_core_thread_session_end(_In_ switch_core_thread_session_t *thread_session);
SWITCH_DECLARE(void) switch_core_thread_session_end(_In_ switch_core_session_t *session);
/*!
\brief Launch a service thread on a session to drop inbound data
\param session the session the launch thread on
\param stream_id which logical media channel to use
\param thread_session the thread_session to use
*/
SWITCH_DECLARE(void) switch_core_service_session(_In_ switch_core_session_t *session,
_In_ switch_core_thread_session_t *thread_session, _In_ int stream_id);
SWITCH_DECLARE(void) switch_core_service_session(_In_ switch_core_session_t *session);
/*!
\brief Request an outgoing session spawned from an existing session using a desired endpoing module