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

Clarify whether individual methods are threadsafe #47

Open
jbellis opened this issue Sep 13, 2023 · 0 comments
Open

Clarify whether individual methods are threadsafe #47

jbellis opened this issue Sep 13, 2023 · 0 comments

Comments

@jbellis
Copy link

jbellis commented Sep 13, 2023

The blog post introducing util-mmap suggests using AtomicSharedReference for thread safety. It looks like this is just a reference counter so that it can unmap files safely when no longer used, and that individual methods in MMapBufferReader and DirectMemory are threadsafe with no need for extra synchronization. Is that correct?

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