fix strange race moc experienced in uuid_bridge

This commit is contained in:
Anthony Minessale committed 2011-12-07 15:14:08 -06:00
1 parent 9ea3ce666f
commit 0bf2a0e975
3 files changed
+51 -10

No files matched your search

+9
View File
@@ -1674,6 +1674,15 @@ SWITCH_DECLARE(void) switch_channel_set_state_flag(switch_channel_t *channel, sw
switch_mutex_unlock(channel->flag_mutex);
}
SWITCH_DECLARE(void) switch_channel_clear_state_flag(switch_channel_t *channel, switch_channel_flag_t flag)
{
switch_assert(channel != NULL);
switch_mutex_lock(channel->flag_mutex);
channel->state_flags[flag] = 0;
switch_mutex_unlock(channel->flag_mutex);
}
SWITCH_DECLARE(void) switch_channel_clear_flag(switch_channel_t *channel, switch_channel_flag_t flag)
{
int ACTIVE = 0;