On Jan 27, 2014 11:41 AM, "Josh Matthews" <[email protected]> wrote:
>
> On 01/27/2014 11:32 AM, Fabrice Desré wrote:
>>
>> On 01/27/2014 11:28 AM, [email protected] wrote:
>>>
>>>
>>> Sorry, don't understand.  Wouldn't it be just as valid to want to use
TcpSocket from a worker?  That's implemented as JS.
>>
>>
>> It is a very valid use case, but that doesn't work currently: we need to
>> either rewrite tcp socket support in c++ or do some kind of proxying to
>> the main thread.
>>
>>         Fabrice
>>
>
> We're choosing the latter option for now:
https://bugzilla.mozilla.org/show_bug.cgi?id=916199

There are performance and code complexity overhead with that solution
though.

We should definitely implement new APIs that we expect to want to use in
workers in C++. UDPSocket is a great example of that.

And please do use the PBackground feature that is about to land in order to
avoid hitting the main thread more than necessary.

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

Reply via email to