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

Extract internal lock-free data structures as public APIs #4

Open
nicowilliams opened this issue May 8, 2023 · 0 comments
Open

Extract internal lock-free data structures as public APIs #4

nicowilliams opened this issue May 8, 2023 · 0 comments

Comments

@nicowilliams
Copy link
Owner

nicowilliams commented May 8, 2023

  • lock-free queue (used in the slotlist TSV implementation)
  • array/rope (ditto) (this is a list of ever-larger array chunks so array indexing is logarithmic and fast)
  • add a bitmask rope flavor of array/rope for allocation of indices into a thread-local array where the indices correspond to TSVs (and not just TSVs, but any other lock-free data structures based on hazard pointers, and any other thread-local caches of anything)
  • add a file descriptor table like data structure, but generic (we could use this to have a set of named TSVs, where the names can be things like file paths)

The array/rope would be nice for file descriptor table like data structures. We could use all of this for getting down to one pthread_key_t for the whole thing, where the one key drives thread exit time cleanup for all the things.

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