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

Add lock_shared/unlock_shared to so_5::null_mutex_t #84

Closed
eao197 opened this issue Aug 21, 2024 · 0 comments
Closed

Add lock_shared/unlock_shared to so_5::null_mutex_t #84

eao197 opened this issue Aug 21, 2024 · 0 comments
Assignees
Milestone

Comments

@eao197
Copy link
Member

eao197 commented Aug 21, 2024

There is so_5::null_mutex_t thas has empty (no-op) methods lock and unlock. It can be used for a case when actual locking is not needed (for example, in single threaded environments).

It may be useful to have also empty (no-op) methods lock_shared and unlock_shared. It that case so_5::null_mutex_t can be used instead of std::shared_mutex when actual locking is not needed.

@eao197 eao197 self-assigned this Aug 21, 2024
@eao197 eao197 added this to the SO-5.8.3 milestone Aug 21, 2024
eao197 added a commit that referenced this issue Oct 16, 2024
@eao197 eao197 closed this as completed Nov 2, 2024
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