Should I always call pj_thread_register ?

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

 



Thanks!

Emil.

On Fri, Oct 23, 2009 at 3:29 PM, Benny Prijono <bennylp at teluu.com> wrote:

> On Wed, Oct 21, 2009 at 10:29 PM, Emil Berg <emilbergg at gmail.com> wrote:
> > Hello,
> >
> > I'm writing a class that wraps pjsua lib.
> > Should I call pj_thread_register() on the constructor of my class, so
> that
> > all of the calls to functions in pjsua will be attached to pjsip's
> threads?
> >
>
> If you're allowing your class to be called by arbitrary
> application/user threads, then calling pj_thread_register() on the
> constructor alone wouldn't be sufficient. You'd need to call
> pj_thread_register() on *every* method of your class. Alternatively,
> just tell the app developer to register their threads with you, then
> you can register it to pjlib. :)
>
> Cheers
>  Benny
>
> _______________________________________________
> 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/20091025/d98c6114/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