How to register native thread

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

 



Hi,

I copy the benny's answer from 13/05/2008 on mailing list ;-)

"Yep this has been discussed quite a number of times. Just do Google
site search (the little text box on the top right corner of pjsip.org
website) on pj_thread_register."

You should find something like that :
   if(!pj_thread_is_registered()) {
   pj_thread_register(NULL,desc,&thread);
   }

Samuel

loki1 at bezeqint.net a ?crit :
> Hi.
> 
> In my pjsua application I'm working with some dll that 
> internally creates thread for callback function. I need 
> first to write data with dll function and then wait for the 
> callback response. I tried to use pj_event for this, but i 
> get error: "Calling pjlib from unknown/external thread..." 
> when i set event to signal from callback.
> 
> Is there any way to avoid it or how can i register this 
> internal dll's thread? Thanks. 
> 
> _______________________________________________
> 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
> 
> 




[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