File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -362,9 +362,7 @@ pub const AsyncKQueue = struct {
362
362
363
363
pub fn submit (self : * AsyncIO ) ! void {
364
364
const kqueue : * AsyncKQueue = @ptrCast (@alignCast (self .runner ));
365
- const change_slice = kqueue .changes [0.. kqueue .change_count ];
366
- kqueue .change_count = 0 ;
367
- _ = try std .posix .kevent (kqueue .kqueue_fd , change_slice , &.{}, null );
365
+ _ = kqueue ;
368
366
}
369
367
370
368
pub fn reap (self : * AsyncIO , wait : bool ) ! []Completion {
@@ -458,10 +456,11 @@ pub const AsyncKQueue = struct {
458
456
// Handle all of the kqueue I/O
459
457
const kqueue_events = try std .posix .kevent (
460
458
kqueue .kqueue_fd ,
461
- &.{} ,
459
+ kqueue . changes [0 .. kqueue . change_count ] ,
462
460
kqueue .events ,
463
461
if (busy_wait or reaped > 0 ) & timeout_spec else null ,
464
462
);
463
+ kqueue .change_count = 0 ;
465
464
for (kqueue .events [0.. kqueue_events ]) | event | {
466
465
const job_index = event .udata ;
467
466
assert (kqueue .jobs .dirty .isSet (job_index ));
You can’t perform that action at this time.
0 commit comments