-
Notifications
You must be signed in to change notification settings - Fork 521
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 KeyedMutex
#4065
base: series/3.x
Are you sure you want to change the base?
Add KeyedMutex
#4065
Conversation
I have observed lower memory footprint while using |
@iRevive One of the implementations of |
Yes, it was the |
f351aec
to
b983469
Compare
b983469
to
da8d095
Compare
da8d095
to
8cb3bd6
Compare
54fedba
to
af98659
Compare
Extention to the current
Mutex
class to support one look perkey
.I extracted the
LockQueue
andlock
implementations into their own file to allow reuse.I added a basic suite of tests, mostly focused on multiple key interactions.
Since each key is, in essence, its own
Mutex
I don't think we need to replicate all the complexMutex
tests... since those are actually tests for theLockQueue
.