samples/reentrant/test/org/apidesign/reentrant/CriticalSectionReentrantForLoopTest.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 21:30:10 +0100
changeset 409 40cabcdcd2be
permissions -rw-r--r--
Updating to NBMs from NetBeans 8.0.1 as some of them are required to run on JDK8
jtulach@112
     1
package org.apidesign.reentrant;
jtulach@112
     2
jtulach@112
     3
public class CriticalSectionReentrantForLoopTest extends CriticalSectionBase {
jtulach@112
     4
    @Override
jtulach@112
     5
    protected CriticalSection<Integer> create() {
jtulach@112
     6
        return new CriticalSectionReentrantForLoop<Integer>();
jtulach@112
     7
    }
jtulach@112
     8
jtulach@112
     9
    @Override
jtulach@112
    10
    protected boolean reentrantJustOnce() {
jtulach@112
    11
        return true;
jtulach@112
    12
    }
jtulach@112
    13
}