curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "csulyj (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CURATOR-283) LockInternals does not deal with spurious weakup?
Date Tue, 22 Dec 2015 15:16:46 GMT

     [ https://issues.apache.org/jira/browse/CURATOR-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

csulyj updated CURATOR-283:
---------------------------
    Description: 
I don't understand why method internalLockLoop doesn't not deal with spurious weakup?

I think it should be like this : 

 synchronized (obj) {

     while (condition does not hold)

        obj.wait(timeout);

         ... // Perform action appropriate to condition

 }

  was:
I don't understand why method internalLockLoop doesn't not deal with spurious weakup?

I think it should be like this : 

 synchronized (obj) {
     while (condition does not hold)
        obj.wait(timeout);
         ... // Perform action appropriate to condition
 }


> LockInternals does not deal with spurious weakup?
> -------------------------------------------------
>
>                 Key: CURATOR-283
>                 URL: https://issues.apache.org/jira/browse/CURATOR-283
>             Project: Apache Curator
>          Issue Type: Test
>          Components: Recipes
>            Reporter: csulyj
>            Priority: Trivial
>
> I don't understand why method internalLockLoop doesn't not deal with spurious weakup?
> I think it should be like this : 
>  synchronized (obj) {
>      while (condition does not hold)
>         obj.wait(timeout);
>          ... // Perform action appropriate to condition
>  }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message