-
-
Notifications
You must be signed in to change notification settings - Fork 25
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 KeyedFileMutex #62
Conversation
42d04dc
to
440a5a8
Compare
4672671
to
fa5c47e
Compare
fa5c47e
to
350540c
Compare
|
||
return $lock; | ||
} catch (FilesystemException) { | ||
delay(self::LATENCY_TIMEOUT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For longer held locks, this is very inefficient. Should we backoff exponentially up to 1 second?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a good idea. This is exactly what we're doing for FileMutex
as well, so I'd say let's update both then.
No description provided.