Hello,

Thanks for responding. 

On Monday, 20 August 2012 17:37:55 UTC+5:30, Shripad K wrote:
>
> Hello Navaneeth,
>
> One cannot ascertain from the JS code whether the call is going to block 
> the event loop or not. In libev, you would register a ev_io watcher and 
> listen for EV_READ, EV_WRITE (or both) events (ev_io_init() + 
> ev_io_start()) whenever the FD becomes readable/writable. I think the 
> equivalent of it is uv_poll_init() + uv_poll_start() in libuv. 
>

I was not talking about will it block the event loop or not. Because I am 
not using event loop at all explicitly. All I am doing is directly calling 
the C function in my module. I was wondering should I implement using Work 
queue (http://nikhilm.github.com/uvbook/threads.html#libuv-work-queue). 

The C Library which I am trying to wrap is available here - 
https://github.com/navaneeth/libvarnam
Node code is available here - 
https://github.com/jijeshmohan/varnam-addon/blob/master/varnam.cc
 

>
> Here is an example of the implementation in zeromq.node: 
> https://github.com/JustinTulloss/zeromq.node/blob/master/binding.cc#L312
>

Thank you. I will take a look at it. 

Thanks
Navaneeth

>

-- 
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

Reply via email to