Make it tick nicely on Windows
This commit is contained in:
parent
26e25ec2ed
commit
8e07c320e8
@ -23,6 +23,8 @@
|
|||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
using namespace v8;
|
using namespace v8;
|
||||||
|
|
||||||
|
void emptyNextTickQueue(Isolate *isolate);
|
||||||
|
|
||||||
/* These two are definitely static */
|
/* These two are definitely static */
|
||||||
std::vector<UniquePersistent<Function>> nextTickQueue;
|
std::vector<UniquePersistent<Function>> nextTickQueue;
|
||||||
Isolate *isolate;
|
Isolate *isolate;
|
||||||
@ -61,9 +63,9 @@ void Main(Local<Object> exports) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
/* Also empty in pre, it doesn't matter */
|
/* Also empty in pre, it doesn't matter */
|
||||||
/*uWS::Loop::defaultLoop()->setPreHandler([]() {
|
uWS::Loop::defaultLoop()->setPreHandler([](uWS::Loop *) {
|
||||||
emptyNextTickQueue(isolate);
|
emptyNextTickQueue(isolate);
|
||||||
});*/
|
});
|
||||||
|
|
||||||
/* Hook up our timers */
|
/* Hook up our timers */
|
||||||
us_loop_integrate((us_loop *) uWS::Loop::defaultLoop());
|
us_loop_integrate((us_loop *) uWS::Loop::defaultLoop());
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 04281eeea649d2d9d527644eba5866de44b64502
|
Subproject commit 3c3819fe3c69a845531c5a4cc5cc81740c15d213
|
Loading…
Reference in New Issue
Block a user