[Freeswitch-users] Is Bgapi threadsafe?

Anthony Minessale anthony.minessale at gmail.com
Thu Oct 13 01:08:47 MSD 2011


wrong week to quit sniffing glue....

correction to last sentence of previous email:

and you **can't** do i/o on it from 2 threads at once naturally.

On Wed, Oct 12, 2011 at 4:07 PM, Anthony Minessale
<anthony.minessale at gmail.com> wrote:
> oh but wait...
>
> if you mean you want threads on your side to share it, I'd either give
> them all their own socket or share one on a mutex cos it's a socket
> and you can do i/o on it from 2 threads at once naturally.
>
>
> On Wed, Oct 12, 2011 at 4:06 PM, Anthony Minessale
> <anthony.minessale at gmail.com> wrote:
>> yes since its a socket and the other side is properly threaded.  If
>> you are using the in-tree ESL lib the client also has race condition
>> protection
>>
>> On Wed, Oct 12, 2011 at 1:06 PM, John Rose <johnrose at google.hm> wrote:
>>> Does anyone know if calling Bgapi on an ESL connection is threadsafe?  I’m
>>> calling it from ManagedESL via C# and have a lock around it but would like
>>> to remove the lock if possible…
>>>
>>> John
>>>
>>>
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> 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
>> pstn:+19193869900
>>
>
>
>
> --
> 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
> pstn:+19193869900
>



-- 
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
pstn:+19193869900



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