vision-dbms / vision-xa-nodejs-connect

A node.js native add-on for the Vision database management system.
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

'VA::Node::Triggerable' uv_async_t events need external uv_default_loop prodding to run #1

Closed MichaelJCaruso closed 6 years ago

MichaelJCaruso commented 6 years ago

It appears that uv_async_send(uv_async_t*) events triggered from VA::Node::Triggerable objects are being scheduled but not being run until something else triggers uv's default loop.

This problem affects (delays) the fulfillment of native (C++) promises (see VA::Node::Resolver) returned by Vision evaluation requests.

Another code path implemented in VA::Node::Process also generates uv_aync_t events. That code path is used to schedule callbacks and object reclamation processing but does not appear to have this problem.

MichaelJCaruso commented 6 years ago

Resolved by commit e617ad4.