diff options
author | 2023-08-29 15:31:06 -0700 | |
---|---|---|
committer | 2023-08-29 15:31:06 -0700 | |
commit | 5d84ef778066a6221630d82b7dc6b01aeddc3c26 (patch) | |
tree | 228e1ebae88207679fb60e08afce7b7656609758 /src/bun.js/javascript.zig | |
parent | a77ed151afd9ae946b500c3bac6cf1fdb18550ad (diff) | |
download | bun-5d84ef778066a6221630d82b7dc6b01aeddc3c26.tar.gz bun-5d84ef778066a6221630d82b7dc6b01aeddc3c26.tar.zst bun-5d84ef778066a6221630d82b7dc6b01aeddc3c26.zip |
Rename `uws_event_loop` to `event_loop_handle`
Diffstat (limited to 'src/bun.js/javascript.zig')
-rw-r--r-- | src/bun.js/javascript.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bun.js/javascript.zig b/src/bun.js/javascript.zig index f1ef15b73..59b10a75a 100644 --- a/src/bun.js/javascript.zig +++ b/src/bun.js/javascript.zig @@ -401,7 +401,7 @@ pub const VirtualMachine = struct { origin: URL = URL{}, node_fs: ?*Node.NodeFS = null, timer: Bun.Timer = Bun.Timer{}, - uws_event_loop: ?*uws.Loop = null, + event_loop_handle: ?*uws.Loop = null, pending_unref_counter: i32 = 0, preload: []const string = &[_][]const u8{}, unhandled_pending_rejection_to_capture: ?*JSC.JSValue = null, @@ -724,7 +724,7 @@ pub const VirtualMachine = struct { pub fn prepareLoop(_: *VirtualMachine) void {} pub fn enterUWSLoop(this: *VirtualMachine) void { - var loop = this.uws_event_loop.?; + var loop = this.event_loop_handle.?; loop.run(); } @@ -732,7 +732,7 @@ pub const VirtualMachine = struct { this.exit_handler.dispatchOnBeforeExit(); var dispatch = false; while (true) { - while (this.eventLoop().tasks.count > 0 or this.active_tasks > 0 or this.uws_event_loop.?.active > 0) : (dispatch = true) { + while (this.eventLoop().tasks.count > 0 or this.active_tasks > 0 or this.event_loop_handle.?.active > 0) : (dispatch = true) { this.tick(); this.eventLoop().autoTickActive(); } @@ -741,7 +741,7 @@ pub const VirtualMachine = struct { this.exit_handler.dispatchOnBeforeExit(); dispatch = false; - if (this.eventLoop().tasks.count > 0 or this.active_tasks > 0 or this.uws_event_loop.?.active > 0) continue; + if (this.eventLoop().tasks.count > 0 or this.active_tasks > 0 or this.event_loop_handle.?.active > 0) continue; } break; @@ -884,7 +884,7 @@ pub const VirtualMachine = struct { this.eventLoop().tick(); while (true) { - while (this.eventLoop().tasks.count > 0 or this.active_tasks > 0 or this.uws_event_loop.?.active > 0) { + while (this.eventLoop().tasks.count > 0 or this.active_tasks > 0 or this.event_loop_handle.?.active > 0) { this.tick(); this.eventLoop().autoTickActive(); } |