samples/reentrant/test/org/apidesign/reentrant/CriticalSectionReentrantForLoopTest.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:54:37 +0200
changeset 112 64308321f7bd
permissions -rw-r--r--
Reentrant access examples rewritten to make a bit more sence
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
}