Skip to content

Commit

Permalink
use Sorted.is_nil instead of equality
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Nov 7, 2024
1 parent 5ca0645 commit f5d355a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sel.ml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ let rec wait_for_system_or_queue_events ~deadline (fds,sys) queue =
let ready_fds, _, _ = Unix.select fds [] [] 0.1 in
let ready_sys, waiting_sys, min_prio_sys = pull_ready ~advance:advance_system ready_fds sys in
let ready_queue, waiting_queue, min_prio_queue = pull_ready ~advance:advance_queue () queue in
if ready_sys <> Sorted.nil || ready_queue <> Sorted.nil
if not(Sorted.is_nil ready_sys) || not(Sorted.is_nil ready_queue)
then
let min_prio = Sorted.min_priority min_prio_queue min_prio_sys in
let new_ready_sys, waiting_sys, min_prio_new_ready_sys = check_for_system_events min_prio waiting_sys in
Expand Down

0 comments on commit f5d355a

Please # to comment.