You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C threads that call into OCaml must first be registered with the runtime using caml_c_thread_register. This is sometimes a difficult requirement to meet when when calling into OCaml through a funptr, since threads may be created inside third-party code that it is not possible to modify.
It'd be convenient to have an option to funptr to wrap calls in caml_c_thread_register and caml_c_thread_unregister, much as the runtime_lock argument makes it possible to acquire and release the runtime lock when calling back into OCaml from C.
The text was updated successfully, but these errors were encountered:
C threads that call into OCaml must first be registered with the runtime using
caml_c_thread_register
. This is sometimes a difficult requirement to meet when when calling into OCaml through a funptr, since threads may be created inside third-party code that it is not possible to modify.It'd be convenient to have an option to
funptr
to wrap calls incaml_c_thread_register
andcaml_c_thread_unregister
, much as theruntime_lock
argument makes it possible to acquire and release the runtime lock when calling back into OCaml from C.The text was updated successfully, but these errors were encountered: