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

sources/hashmap.c: fix lock #706

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

rkhapov
Copy link
Collaborator

@rkhapov rkhapov commented Oct 28, 2024

pthread_mutex_trylock returns non-zero, when mutex is not locked, so current usage will sleep when mutex is locked succesfully

pthread_mutex_trylock returns non-zero, when mutex is not locked,
so current usage will sleep when mutex is locked succesfully

Signed-off-by: rkhapov <[email protected]>
@rkhapov rkhapov requested a review from x4m October 28, 2024 13:11
@rkhapov rkhapov merged commit f5d29e6 into yandex:master Oct 28, 2024
1 check passed
rkhapov added a commit that referenced this pull request Nov 15, 2024
pthread_mutex_trylock returns non-zero, when mutex is not locked,
so current usage will sleep when mutex is locked succesfully

Signed-off-by: rkhapov <[email protected]>
Co-authored-by: rkhapov <[email protected]>
(cherry picked from commit f5d29e6)
Signed-off-by: rkhapov <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants