[
https://issues.apache.org/jira/browse/GEODE-9179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17331264#comment-17331264
]
ASF subversion and git services commented on GEODE-9179:
--------------------------------------------------------
Commit 5120038f675a1e30b382769e68dfda4217d88910 in geode-native's branch
refs/heads/develop from Mario Salazar de Torres
[ https://gitbox.apache.org/repos/asf?p=geode-native.git;h=5120038 ]
GEODE-9179: Solve possible race conditions in UTs (#787)
- Solved a potential race condition in ExpiryTaskTest UTs TS.
condition_variable was replaced by a binary_semaphore.
- Implemented try_acquire_for binary_semaphore operation.
> Solve race condition in UTs
> ---------------------------
>
> Key: GEODE-9179
> URL: https://issues.apache.org/jira/browse/GEODE-9179
> Project: Geode
> Issue Type: Bug
> Components: native client
> Reporter: Mario Salazar de Torres
> Assignee: Mario Salazar de Torres
> Priority: Major
> Labels: pull-request-available
>
> When doing syncronization in some UT cases like ExpiryTaskManager ones,
> condition_variables are used. Problem is if the thread notifying, send the
> notification before the wait is called in the other thread, then it could
> lead to a dead-lock or timeout in the case of a timed wait.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)