-
Notifications
You must be signed in to change notification settings - Fork 176
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
use upgradable lock in SHM mappings #555
use upgradable lock in SHM mappings #555
Conversation
I'm not sure about this change. According to the documentation:
That means, if I have understood it correctly, we can't have parallel reads in this case. As a consequence, only one message at the time can be verified for |
@Mallets Let's check an example: in the original codebase two concurrent threads will use concurrent read access, I agree, BUT when releasing read locks and concurrently acquiring write locks we have 50% probability of one unnecessary context switch! The worst-case: |
Understood. But that context switch would happen |
I missed that point! Understood and agree! |
Great, then I'll close this PR without merging since it may not bring the expected benefits. |
No description provided.