I was curious about this code snippet which appears in mod_fifo.c near line 3775 and again near line 3786:<div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace" size="1">len = node_caller_count(node);</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace" size="1">switch_mutex_lock(node->update_mutex);</font></div><div><font class="Apple-style-span" face="'courier new', monospace" size="1">stream->write_function(stream, "%s:%d:%d:%d\n", argv[1], node->consumer_count, node_caller_count(node), len);</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace" size="1">switch_mutex_unlock(node->update_mutex);</font></div></div><div><br></div><div>I was curious: what's the difference in the stream->write between node_caller_count(node) and len? Under what circumstances would they be different? (I'm assuming the locking of the mutex after setting the value of len may have something to do with it...)</div>
<div><br></div><div>Thanks,</div><div>MC</div><div><br></div>