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