Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Luv.TLS more usable with OCaml values #39

Open
aantron opened this issue Feb 19, 2020 · 0 comments
Open

Make Luv.TLS more usable with OCaml values #39

aantron opened this issue Feb 19, 2020 · 0 comments

Comments

@aantron
Copy link
Owner

aantron commented Feb 19, 2020

See https://aantron.github.io/luv/luv/Luv/TLS/index.html:

The interface is currently written in terms of nativeint, the type of pointer-sized raw values. You can store OCaml values in TLS by manipulating and registering them with the GC using Ctypes.Root. The conversions between unit ptr and nativeint are Ctypes.ptr_of_raw_address and Ctypes.raw_address_of_ptr.

A future version of this API is likely to handle GC roots internally, and be directly usable with OCaml values.

@aantron aantron added this to the 0.5.2 milestone Mar 13, 2020
@aantron aantron removed this from the 0.5.x milestone Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant