Thank you all. I'm working on uv_async_send now. 

On Saturday, April 6, 2013 5:35:01 AM UTC+8, Bert Belder wrote:
>
> You can only call V8 APIs from the main thread - so the HandleScope error 
> is expected.
>
> Typically you would use an uv_async_t handle to wake up the main thread. 
> Then in the async callback you'd call any javascript callbacks.
>
> - Bert
>
> . Friday, April 5, 2013 6:42:40 PM UTC+2, Jerry Yin wrote:
>>
>> Hi,
>>
>> I want to make a program like below.
>>
>> thread1 nodejs with an addon, let's say addon1 exposed an method start to 
>> call MakeCallBack.
>> thread2 call the addon1's method.
>>
>> It will cause the Handle Scope Error.
>>
>> Are there any way to solve this? to call from another thread and get the 
>> correct Handle Scope?
>>
>> Thanks,
>> Jerry
>>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to