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

crossbeam::skiplist: make iterator sendable to anther threads #1090

Open
SpadeA-Tang opened this issue Mar 5, 2024 · 1 comment
Open

crossbeam::skiplist: make iterator sendable to anther threads #1090

SpadeA-Tang opened this issue Mar 5, 2024 · 1 comment

Comments

@SpadeA-Tang
Copy link

We are currently implementing an in-memory engine feature in TiKV, and use skiplist as the underlying engine.
We need the iterator to be sendable among threads.
However, the current skiplist implementation carries the borrow of the skiplist, so the iterator can only be used in the thread creating it.
I implement a wrapper of the current skiplist, making it support creating iterators supporting the senario described above.
Would you mind reviewing it and seeing it is needed in crossbeam skiplist.

@SpadeA-Tang
Copy link
Author

@taiki-e PTAL, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants