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
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to