Nathan,

Thanks for the pointer. Do you know of any libraries other than node-ffi 
doing this?

-Noah

On Sunday, December 2, 2012 11:50:54 AM UTC-8, Nathan Rajlich wrote:
>
> You're gonna want to look into using a "uv_async_t" object which you 
> can invoke from another thread and it will notify the main thread that 
> the associated callback should be invoked. node-ffi does this for 
> example: 
> https://github.com/rbranson/node-ffi/blob/885e6f671c3cd9b9eca8a9f6e0f4cad3d963e69d/src/callback_info.cc#L161-L162
>  
>
> On Sat, Dec 1, 2012 at 5:46 PM, mscdex <[email protected] <javascript:>> 
> wrote: 
> > On Dec 1, 5:27 pm, Noah Watkins <[email protected]> wrote: 
> >> I am writing an interface for node to an I/O library that has both 
> >> synchronous and asynchronous I/O support. I am familiar with using 
> libeio 
> >> to wrap synchronous I/O routines, but is there an optimization for 
> using 
> >> the async interface provided by the library, and what is the 
> recommended 
> >> approach in this situation? 
> > 
> > What's the library? 
> > 
> > -- 
> > 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]<javascript:> 
> > To unsubscribe from this group, send email to 
> > [email protected] <javascript:> 
> > For more options, visit this group at 
> > http://groups.google.com/group/nodejs?hl=en?hl=en 
>

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