[prev in list] [next in list] [prev in thread] [next in thread]
List: freeswitch-dev
Subject: Re: [Freeswitch-dev] mod_fifo.c question re: fifo count values
From: Anthony Minessale <anthony.minessale () gmail ! com>
Date: 2011-09-29 15:59:24
Message-ID: CAKbxfG-pFE4s1FrVakxL3FePyHMras+OzHVsm51K8kesLdQ7vw () mail ! gmail ! com
[Download RAW message or body]
Nothing,
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@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@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@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic