samples/reentrant/test/org/apidesign/reentrant/CriticalSectionSynchronizedWithNonReentrantLockTest.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:54:36 +0200
changeset 111 3905a2e66b9b
permissions -rw-r--r--
Sample code with various attempts to fight with reentrant code
jtulach@111
     1
package org.apidesign.reentrant;
jtulach@111
     2
jtulach@111
     3
public class CriticalSectionSynchronizedWithNonReentrantLockTest extends CriticalSectionBase {
jtulach@111
     4
jtulach@111
     5
    @Override
jtulach@111
     6
    protected CriticalSection<Integer> create() {
jtulach@111
     7
        return new CriticalSectionSynchronizedWithNonReentrantLock<Integer>();
jtulach@111
     8
    }
jtulach@111
     9
jtulach@111
    10
}