2013년 7월 20일 토요일 오후 1시 0분 7초 UTC+9, Fabrice Desre 님의 말:
> Hi,
> 
> 
> 
> > Actually, I investigating how to port our company's solution into b2g 
> 
> > to suggest to device Manufacturer.
> 
> > 
> 
> > The engine is set into Gonk as a library(implemented with C++ xxx.so).
> 
> > And it have to run in another thread.
> 
> > 
> 
> > In this case, have to call some functions in Gaia(callback) because of 
> > notify 
> 
> > to webapp to run another webapp (ex. run phone call...)
> 
> > 
> 
> > I really expect your advise.
> 
> > I still wonder my direction is correct or not.
> 
> 
> 
> You really have to dispatch your data to the callback on the main
> 
> thread. In gecko c++, we use NS_DispatchToMainThread for that (see
> 
> https://mxr.mozilla.org/mozilla-central/ident?i=NS_DispatchToMainThread
> 
> for a lot of usage examples).
> 
> 
> 
>       Fabrice
> 
> -- 
> 
> Fabrice Desré
> 
> b2g team
> 
> Mozilla Corporation

Do you mean there is no way to call a callback in main thread from another 
thread?

Thanks.

-- 
.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to