Debian Codegraph @

current/template/Accumulator.java

raw symbols SCIP
1 package template;
2
3 import java.util.concurrent.locks.ReadWriteLock;
4
5 /**
6 * Interface for accumulating statistics captured by threads.
7 *
8 * @author Brian Bushnell
9 * @date November 19, 2015
10 *
11 * @param <T>
12 */
13 public interface Accumulator<T> {
14
15 /** Accumulate personal variables from finished threads */
16 public void accumulate(T t);
17
18 // /** A shared lock preventing premature accumulation */
19 // public ReadWriteLock rwlock=new ReentrantReadWriteLock();
20
21 /** A shared lock preventing premature accumulation */
22 public ReadWriteLock rwlock();
23
24 /** True if it finished successfully */
25 public boolean success();
26
27 }