I looked a little closer, and there definitely are paths that are focused
on being able to be called off main thread. That's actually a property I
wish more of our code had - so you should support that (which means at a
minimum you need a c++ bit to shuffle stuff onto the main thread where you
can deal with it in JS.. but that will hurt your latency because the main
thread gets backed up from time to time.)


On Wed, Feb 19, 2014 at 11:29 AM, Honza Bambas <[email protected]> wrote:

> On 2/19/2014 4:31 PM, Patrick McManus wrote:
>
>> Can this be done in JS or should it be done in C++? Would it be
>>> advisable to do it in C++?
>>>
>>>
>>>  the idl will let you do either. I'm not really certain whether or not
>> you
>> will find the other JS libraries sufficient to the implementation in JS or
>> not. Make sure not to block the main thread.
>>
>>
> I *think* nsIDNSService is called from non-main threads too.  Hence, you
> may be forced to have a C++ thread-safe implementation (JS is limited to
> main thread only).  Good to check before you decide.
>
> -hb-
>
>
> _______________________________________________
> dev-tech-network mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-network
>
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to