mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 01:24:49 +01:00
Io.Threaded.batchAwaitConcurrent: fix poll args
This commit is contained in:
parent
b778826df5
commit
15f0af09d0
1 changed files with 1 additions and 1 deletions
|
|
@ -2868,7 +2868,7 @@ fn batchAwaitConcurrent(userdata: ?*anyopaque, b: *Io.Batch, timeout: Io.Timeout
|
|||
break :t @min(@max(0, duration.raw.toMilliseconds()), std.math.maxInt(i32));
|
||||
};
|
||||
const syscall = try Syscall.start();
|
||||
const rc = posix.system.poll(&poll_buffer, poll_storage.len, timeout_ms);
|
||||
const rc = posix.system.poll(poll_storage.slice.ptr, poll_storage.len, timeout_ms);
|
||||
syscall.finish();
|
||||
switch (posix.errno(rc)) {
|
||||
.SUCCESS => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue