2013년 7월 19일 금요일 오후 9시 46분 2초 UTC+9, Fabrice Desre 님의 말:
> Hi,
> 
> 
> 
> On 07/18/2013 08:31 PM, Taewan Kim wrote:
> 
> > Hi, all
> 
> > 
> 
> > I modified b2g to test.
> 
> > - Gaia: implement web app
> 
> > - Gecko: implement interface using js-ctype
> 
> > - Gonk: implement c++ lib (xxx.so)
> 
> > 
> 
> > success to call initialize function from Gaia to Gonk
> 
> > so, checked working thread and timer in xxx.so
> 
> > And also checked call callback function. (main thread)
> 
> >   - registered in Gaia
> 
> >   - call in Gonk
> 
> > 
> 
> > But, crash occurred when call callback function in another thread which 
> > created in Gonk.
> 
> > 
> 
> > 
> 
> > Anybody can help me?
> 
> 
> 
> You need to call the callback function from the main thread, because the
> 
> DOM (and content JS generaly) is not thread safe.
> 
> 
> 
>       Fabrice
> 
> -- 
> 
> Fabrice Desré
> 
> b2g team
> 
> Mozilla Corporation

Thank for your reply.

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.
 
Thanks in advance.

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

Reply via email to