update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@467 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
0b5f27f66f
commit
bb92c3248e
|
@ -567,9 +567,11 @@ static __inline__ void check_state(zap_span_t *span)
|
|||
zap_clear_flag_locked(span, ZAP_SPAN_STATE_CHANGE);
|
||||
for(j = 1; j <= span->chan_count; j++) {
|
||||
if (zap_test_flag((&span->channels[j]), ZAP_CHANNEL_STATE_CHANGE)) {
|
||||
zap_clear_flag_locked((&span->channels[j]), ZAP_CHANNEL_STATE_CHANGE);
|
||||
zap_mutex_lock(span->channels[j].mutex);
|
||||
zap_clear_flag((&span->channels[j]), ZAP_CHANNEL_STATE_CHANGE);
|
||||
state_advance(&span->channels[j]);
|
||||
zap_channel_complete_state(&span->channels[j]);
|
||||
zap_mutex_unlock(span->channels[j].mutex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue