Skip to content

Commit

Permalink
backend/iocp: fix some zig update issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Mar 22, 2024
1 parent 656606b commit c675b5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/iocp.zig
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ pub const Loop = struct {
self.asyncs = .{};

while (asyncs.pop()) |c| {
const c_wakeup = c.op.async_wait.wakeup.swap(false, .seq_cst);
const c_wakeup = c.op.async_wait.wakeup.swap(false, .SeqCst);

// If we aren't waking this one up, requeue
if (!c_wakeup) {
Expand Down Expand Up @@ -830,7 +830,7 @@ pub const Loop = struct {

// The completion has been wakeup, this is used to see which completion in the async queue
// needs to be removed.
completion.op.async_wait.wakeup.store(true, .seq_cst);
completion.op.async_wait.wakeup.store(true, .SeqCst);

const result = windows.kernel32.PostQueuedCompletionStatus(
self.iocp_handle,
Expand Down

0 comments on commit c675b5a

Please sign in to comment.