Register a thread every once in a while

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 19, 2009 at 9:45 AM, Alexei Kuznetsov <eofster at gmail.com> wrote:

> Hello,
>
> In my app I've decided to start and destroy pjsua in the separate thread to
> untie the UI. Is it okay if I do that in the new socondary thread every time
> as long as I call pj_thread_register? Or should I have one secondary thread
> hanging around, register it once, and make such calls from it? I mean, is it
> something wrong with registering short-lived threads that just make a call
> to pjsua and exit?
>
>
That should be okay. The only requirement is that pjlib needs to know the
thread (by registering it) before that thread enters pjlib.

cheers
 Benny



> Alexei
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090319/3086e64f/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux