[ 
https://issues.apache.org/jira/browse/GEODE-9179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17326409#comment-17326409
 ] 

ASF GitHub Bot commented on GEODE-9179:
---------------------------------------

gaussianrecurrence opened a new pull request #787:
URL: https://github.com/apache/geode-native/pull/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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> 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
>
> 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)

Reply via email to