Package org.jgroups.util

Examples of org.jgroups.util.CondVar


        cond.waitUntilWithTimeout(Boolean.TRUE,  2000);
    }

    public void testDoubleLocking() throws org.jgroups.TimeoutException {
        final Map m=new HashMap();
        final CondVar c=new CondVar("bla", Boolean.FALSE, m);

        new Thread() {
            public void run() {
                Util.sleep(1000);
                _setValue(m, c);
View Full Code Here


public class CondVarTest implements Condition {
    protected CondVar          cond;
    protected volatile boolean done=false; // our condition

    @BeforeMethod protected void setup() {
        cond=new CondVar();
        done=false;
    }
View Full Code Here

TOP

Related Classes of org.jgroups.util.CondVar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.