I should also add that the project is open-source so if you're curious for
more specifics about what we're doing the source is available here:

https://github.com/fabric-engine/PublicDev/tree/ver-1.1.0-alpha/Native/Clients/Node

Cheers,
Andrew



On Thu, Mar 29, 2012 at 11:37 AM, Andrew MacPherson
<[email protected]>wrote:

> It's entirely possible there's a better way. :)
>
> We have a class that derives from HandleWrap and has a member uv_async_t
> that we set as its handle (using SetHandle). The core of our module is
> multithreaded and will periodically send notifications that we want to
> process in Javascript. These notifications are queued and the notifying
> thread then calls uv_async_send() with our member uv_async_t so that the
> main thread will service us later in order to process these notifications.
>
> If there's a better way or any example code you can point me to I can
> definitely try it out on our end to see how it goes.
>
> Thanks!
> Andrew
>
>
>
>
> On Thu, Mar 29, 2012 at 10:46 AM, Ben Noordhuis <[email protected]>wrote:
>
>> On Thu, Mar 29, 2012 at 16:19, Andrew MacPherson <[email protected]>
>> wrote:
>> > Hi, we have a Node.js module that runs on both Mac OS X and Linux that
>> makes
>> > use of the HandleWrap class (src/handle_wrap.h) in order to schedule an
>> > asynchronous callback in certain cases. We're trying to get the module
>> > working in Windows as well but as the HandleWrap class is not marked as
>> > NODE_EXTERN it's unavailable to us at link time. Adding NODE_EXTERN
>> makes
>> > our module work fine, but obviously only with versions of Node also
>> compiled
>> > with it.
>> >
>> > Would defining the HandleWrap class as NODE_EXTERN be something that's
>> > possible in Node trunk in a future release or are there reasons to avoid
>> > doing so?
>>
>> What are you doing with the HandleWrap, Andrew? It's not exposed
>> because it's an implementation detail. Maybe there's a better way to
>> accomplish what you're doing.
>>
>> --
>> 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
>>
>
>

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