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 KeyedFileMutex #62

Merged
merged 4 commits into from
Mar 11, 2024
Merged

Add KeyedFileMutex #62

merged 4 commits into from
Mar 11, 2024

Conversation

bwoebi
Copy link
Member

@bwoebi bwoebi commented Sep 25, 2021

No description provided.

@bwoebi bwoebi changed the title Add AsyncFileKeyedMutexTest Add AsyncFileKeyedMutex Sep 25, 2021
@bwoebi bwoebi changed the title Add AsyncFileKeyedMutex Add FileKeyedMutex Sep 25, 2021
@bwoebi bwoebi force-pushed the v3-filekeyedmutex branch 3 times, most recently from 4672671 to fa5c47e Compare September 25, 2021 16:15
@bwoebi bwoebi changed the title Add FileKeyedMutex Add KeyedFileMutex Sep 25, 2021
@kelunik kelunik deleted the branch 3.x February 18, 2023 15:39
@kelunik kelunik closed this Feb 18, 2023
@kelunik kelunik reopened this Feb 18, 2023
@kelunik kelunik changed the base branch from v3 to 3.x February 18, 2023 15:45
@trowski trowski force-pushed the v3-filekeyedmutex branch from fa5c47e to 350540c Compare March 9, 2024 16:15
@trowski trowski requested a review from kelunik March 9, 2024 16:34

return $lock;
} catch (FilesystemException) {
delay(self::LATENCY_TIMEOUT);
Copy link
Member

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?

Copy link
Member

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.

@trowski trowski merged commit 503c1b5 into 3.x Mar 11, 2024
10 checks passed
@trowski trowski deleted the v3-filekeyedmutex branch March 11, 2024 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants