2008/12/11 Aleksander Morgado <sofia-sip-de...@aleksander.es>:
>> You have to obtain the root (via su_root_obtain()) that is used by nta
>> in order to access the nta objects in safe manner. (The original
>> thread used to create the root object must first release it with
>> su_root_release()).
>
> Like locking/unlocking a mutex, understood.
>
> I guess this also applies to nta_outgoing_tcreate() and friends. Even
> if sending outgoing transactions of different call legs in different
> threads, getting/releasing the root of the NTA is needed to avoid
> problems in the internal lists of the NTA agent. Right?

That is correct. The additional complication is that some thread must
sometimes call su_root_run() or su_root_step() to keep timers and
retransmissions running.

-- 
Pekka.Pessi mail at nokia.com

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to