samples/reentrant/src/org/apidesign/reentrant/CriticalSection.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 20:46:27 +0100
changeset 408 9a439a79c6d0
permissions -rw-r--r--
Use scala 2.10.4 to compile on JDK8
jtulach@111
     1
package org.apidesign.reentrant;
jtulach@111
     2
jtulach@111
     3
import java.util.Collection;
jtulach@111
     4
jtulach@111
     5
public interface CriticalSection<T extends Comparable<T>> {
jtulach@111
     6
    
jtulach@111
     7
    public void assignPilot(T pilot);
jtulach@111
     8
    public int sumBigger(Collection<T> args);
jtulach@111
     9
    public int getCount();
jtulach@111
    10
}