Examples of FJTaskRunnerGroup


Examples of EDU.oswego.cs.dl.util.concurrent.FJTaskRunnerGroup

     * @param aConnectionState connection state interface.
     */
    MDDiscoverer(Executor anExecutor, ConnectionState aConnectionState)
    {
        connectionState = aConnectionState;
        eventsRunner = new FJTaskRunnerGroup(1);
        executor = anExecutor;
        schedule = new HashSet<String>();
        rescheduleTimer = new Timer(true);
        listeners = new CopyOnWriteArrayList<IDiscoveryListener>();
    }
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.FJTaskRunnerGroup

*/
protected Smp(int maxThreads) {
  maxThreads = Math.max(1,maxThreads);
  this.maxThreads = maxThreads;
  if (maxThreads>1) {
    this.taskGroup = new FJTaskRunnerGroup(maxThreads);
  }
  else { // avoid parallel overhead
    this.taskGroup = null;
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.