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
Maybe I misunderstand how it works, but there does not seem to be a clean way to close the Uring from Haskell land. There is the uringFptr in the URing data structure that is a ForeignPtr HsURing coming from c_free_uring but I don't really understand how to use it.
The text was updated successfully, but these errors were encountered:
Aha, I hadn't really thought about the use-after-free implications. My intended use case was during the stopping of an IO manager, but I suppose that the finalizers of a ForeignPtr suffice for cleaning up when it's GC-ed. As I understand it, an IO manager would only really be closed when the program shuts down anyway. I'll add a note in the docs that manually closing the Uring is not required.
Maybe I misunderstand how it works, but there does not seem to be a clean way to close the
Uring
from Haskell land. There is theuringFptr
in theURing
data structure that is aForeignPtr HsURing
coming fromc_free_uring
but I don't really understand how to use it.The text was updated successfully, but these errors were encountered: