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

RCUPtr for photon thread environment #529

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Conversation

Coldwings
Copy link
Collaborator

A simple RCUPtr implementation in photon environment, takes photon thread as reader/writer, based on rcu-qsbr.

RCU is a simple synchronize unit for concurrent read and light write.
RCU means Read-Copy-Update, Concurrent readers takes nearly no extra costs. only writer have to copy & update object and atomic switch pointer. Expired objects can always be free after grace period.

RCUPtr has a few common limits. IT IS NOT FOR ALL USERS.

@Coldwings Coldwings force-pushed the rcuptr branch 3 times, most recently from 35e75f9 to 8f1387e Compare July 19, 2024 08:02
@lihuiba lihuiba merged commit 9e95f7a into alibaba:main Jul 22, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants