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/api/bun.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/api/bun.zig')
-rw-r--r-- | src/bun.js/api/bun.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bun.js/api/bun.zig b/src/bun.js/api/bun.zig index cf984c81a..f86031caf 100644 --- a/src/bun.js/api/bun.zig +++ b/src/bun.js/api/bun.zig @@ -3325,7 +3325,7 @@ pub const Timer = struct { if (val.did_unref_timer) { val.did_unref_timer = false; - vm.uws_event_loop.?.num_polls += 1; + vm.event_loop_handle.?.num_polls += 1; } } } @@ -3398,7 +3398,7 @@ pub const Timer = struct { .callback = JSC.Strong.create(callback, globalThis), .globalThis = globalThis, .timer = uws.Timer.create( - vm.uws_event_loop.?, + vm.event_loop_handle.?, id, ), }; @@ -3444,7 +3444,7 @@ pub const Timer = struct { if (!val.did_unref_timer) { val.did_unref_timer = true; - vm.uws_event_loop.?.num_polls -= 1; + vm.event_loop_handle.?.num_polls -= 1; } } } @@ -3597,7 +3597,7 @@ pub const Timer = struct { this.timer.deinit(); // balance double unreffing in doUnref - vm.uws_event_loop.?.num_polls += @as(i32, @intFromBool(this.did_unref_timer)); + vm.event_loop_handle.?.num_polls += @as(i32, @intFromBool(this.did_unref_timer)); this.callback.deinit(); this.arguments.deinit(); @@ -3653,7 +3653,7 @@ pub const Timer = struct { .callback = JSC.Strong.create(callback, globalThis), .globalThis = globalThis, .timer = uws.Timer.create( - vm.uws_event_loop.?, + vm.event_loop_handle.?, Timeout.ID{ .id = id, .kind = kind, |