[Freeswitch-svn] [commit] r3567 - freeswitch/trunk/src/mod/applications/mod_conference
Freeswitch SVN
anthm at freeswitch.org
Thu Dec 7 13:16:29 EST 2006
Author: anthm
Date: Thu Dec 7 13:16:29 2006
New Revision: 3567
Modified:
freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
Log:
where did the read lock go in del_member
Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c Thu Dec 7 13:16:29 2006
@@ -473,6 +473,11 @@
conference_member_t *imember, *last = NULL;
switch_event_t *event;
+ if (switch_thread_rwlock_tryrdlock(conference->rwlock) != SWITCH_STATUS_SUCCESS) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Read Lock Fail\n");
+ return;
+ }
+
switch_mutex_lock(conference->mutex);
switch_mutex_lock(conference->member_mutex);
switch_mutex_lock(member->audio_in_mutex);
More information about the Freeswitch-svn
mailing list