Pekka Pessi a écrit :
On 5/11/06, Thomas Rosenblatt <[EMAIL PROTECTED]> wrote:
I have it when the sup_tid is different from thread pid:)
in the su_root_destroy()
--->assert(SU_ROOT_OWN_THREAD(self))

How do you call su_root_destroy()? Do you su_root_break() if you are
in callback, and call su_root_destroy() only after returning from
su_root_run()?

In fact my problem does not come when su_root_run() is used:

In my case I use su_root_run only if the resolution is not possible directly from the cache.

Well in my main function, I initialized a su_root_object, and a resolver object. In my callback function, I make a su_root_break(), then I return in my main function, the su_root_run() exits and I make a su_root_destroy().

Thanks,

Thomas.

PS: The ideal case would to have only one thread, which always made a su_root_run, and handles request and responses, and others thread that made the "logic" part (but asynchronously).




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to