diff options
author | 2022-09-22 02:25:32 -0700 | |
---|---|---|
committer | 2022-09-22 02:25:32 -0700 | |
commit | ce9daa48572a345ffd95e41d9f64b9e4719a88fa (patch) | |
tree | d3a6198f4c17e4afe3edb403efc9eea08212a589 /src/bun_js.zig | |
parent | e15fb6b9b220510df049e782d4f2f6eb3150d069 (diff) | |
download | bun-ce9daa48572a345ffd95e41d9f64b9e4719a88fa.tar.gz bun-ce9daa48572a345ffd95e41d9f64b9e4719a88fa.tar.zst bun-ce9daa48572a345ffd95e41d9f64b9e4719a88fa.zip |
1 event loop per thread. Instead of 3.
uWebSockets and uSockets will need to be upgraded to match the changes.
Previously:
- Bun had a separate kqueue/eventfd just for async wakeups.
- Bun had a separate kqueue/epoll just for reading files non-blocking in the same thread
This commit unifies it into one event loop per thread
Diffstat (limited to 'src/bun_js.zig')
-rw-r--r-- | src/bun_js.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun_js.zig b/src/bun_js.zig index 118cf00f9..679576821 100644 --- a/src/bun_js.zig +++ b/src/bun_js.zig @@ -153,7 +153,7 @@ pub const Run = struct { this.vm.active_tasks > 0) { this.vm.event_loop.ensureWaker(); - _ = this.vm.event_loop.waker.?.wait() catch 0; + _ = this.vm.uws_event_loop.?.run(); } } } |