[Freeswitch-dev] mod_fifo.c question re: fifo count values

Anthony Minessale anthony.minessale at gmail.com
Thu Sep 29 19:59:24 MSD 2011


Based on commit log there was a change that more or less brought both
vals to the same thing so i just omitted it in latest patch.

On Wed, Sep 28, 2011 at 7:58 PM, Michael Collins <msc at freeswitch.org> wrote:
> I was curious about this code snippet which appears in mod_fifo.c near line
> 3775 and again near line 3786:
> len = node_caller_count(node);
> switch_mutex_lock(node->update_mutex);
> stream->write_function(stream, "%s:%d:%d:%d\n", argv[1],
> node->consumer_count, node_caller_count(node), len);
> switch_mutex_unlock(node->update_mutex);
> 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...)
> Thanks,
> MC
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org

Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org

Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list