On Wed, Jul 11, 2012 at 12:56 AM, Nathan Sobo <[email protected]> wrote:
> I'm glad to hear you're thinking about this. What's the mutual exclusion
> situation look like? When I call functions that modify the uv_loop_t struct
> from another thread, will I need to synchronize that access, or would that
> synchronization be done internally? Are there any branches started on this?
>
> Thanks for your reply.

You need to handle synchronization yourself.

I should mention that libuv does not support manipulating an event
loop from more than one thread. Calling e.g. uv_run_once(loop) from
alternately thread #1 and thread #2 - even with proper locking in
place - won't work. That's mostly a uv-win limitation but uv-unix
makes no guarantees either.

You can have multiple event loops, one for each thread, however.

Re: branches: no, not yet. I'm working on a couple of other features first.

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