On Mar 29, 8:05 pm, mscdex <[email protected]> wrote:
> On Mar 29, 7:55 pm, Ben Farrell <[email protected]> wrote:
>
> > Thanks for looking at this.
> > Is there a better way to kick off a thread than what I'm doing?
> > If I simply remove those lines, my thread won't get started, and while
> > execution won't be blocked anymore, the addon won't do what it's
> > supposed to do (which is to keep running in the background processing
> > frames from the device)
>
> Use uv_ref() to keep node from ending early. If you don't have a
> uv_handle_t to pass to it, try `uv_ref(uv_default_loop());`.

Ok, so you do have a handle. In your initialize (after removing the
two lines mentioned earlier) do this: uv_ref((uv_handle_t *)&async);

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