The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #86 from TheLortex/io_uring_submit_blocking_section

Use `caml_enter_blocking_section` when calling `io_uring_submit`

authored by

Thomas Leonard and committed by
GitHub
2a74ac6e 0b948f45

+10 -4
+4
vendor/opam/uring/CHANGES.md
··· 1 + ## dev 2 + 3 + - Use `caml_enter_blocking_section` when calling `io_uring_submit` (@TheLortex #86). 4 + 1 5 ## v0.5 2 6 3 7 - Decouple Heap entries from ring size (@haesbaert #81).
+1 -1
vendor/opam/uring/lib/uring/uring.ml
··· 220 220 221 221 external unregister_buffers : t -> unit = "ocaml_uring_unregister_buffers" 222 222 external register_bigarray : t -> Cstruct.buffer -> unit = "ocaml_uring_register_ba" 223 - external submit : t -> int = "ocaml_uring_submit" [@@noalloc] 223 + external submit : t -> int = "ocaml_uring_submit" 224 224 external sq_ready : t -> int = "ocaml_uring_sq_ready" [@@noalloc] 225 225 226 226 external get_probe_ring : t -> probe = "ocaml_uring_get_probe_ring"
+5 -3
vendor/opam/uring/lib/uring/uring_stubs.c
··· 644 644 return (Val_true); 645 645 } 646 646 647 - value /* noalloc */ 648 - ocaml_uring_submit(value v_uring) 647 + value ocaml_uring_submit(value v_uring) 649 648 { 649 + CAMLparam1(v_uring); 650 650 struct io_uring *ring = Ring_val(v_uring); 651 + caml_enter_blocking_section(); 651 652 int num = io_uring_submit(ring); 652 - return (Val_int(num)); 653 + caml_leave_blocking_section(); 654 + CAMLreturn (Val_int(num)); 653 655 } 654 656 655 657 #define Val_cqe_none Val_int(0)