Hey everyone!
I have a library that does some heavy tasks that would block the main progress
if I made it a blocking method. But I would like to go with a event-driven
method, but I havent found out how these are written in C++. Here is what Id
like to see in JS side:
var task = require(...).myTaskCreator(...);
task.on(...);
Especially the .on() kind of thing would be very interesting.
Further, I think I will let my library ran off in a separate process, using
TinyThreads++ as my thread abstraction.
But... What things do I need in order to create/use an EventEmitter in C++?
From what I can imagine is, that I have to export a function that creates the
event emitter and feeds the worker-thread the information...via a struct or
alike. But how do I emit events then?
Hope you can understand what I am trying to say ^^;
Kind regards, Ingwie
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/90642BBE-E401-487B-8D86-E5BDE3E3CFF3%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.