How would I setup a custom event and event handler in Windows C++?
An analog for what I want to accomplish would be something similar to what this is doing in nodejs:
//in main execution context:
var app = require('myapp');
app.on('ready', function(){
//An event handler for the ready event
})
var i = 10;
foo(i);
//... do other stuff
================================================
//in a different execution context:
app.doStuff();
app.emit("ready");
What is the Windows C++ mechanism for setting and event handler and continuing execution?