Beispiel #1
0
 public CSJoinableScheduler(string threadName, long keepAliveTime, JoinableExecutor executor)
 {
     currentTasks       = new Stack <Task>();
     this.threadName    = threadName;
     this.keepAliveTime = keepAliveTime;
     this.executor      = executor;
 }
 // only for tests
 public EventsThread()
 {
     queue_Renamed = new CSJoinableExecutor();
 }
 public SingleThreadMultiplexer()
 {
     executor  = ExecutorFactory.DefaultExecutorFactory.getExecutor(1, "Session Thread", 1000);
     scheduler = ExecutorFactory.DefaultExecutorFactory.getScheduledExecutor(1, "Session Thread", 1000, executor);
 }
 public virtual JoinableScheduler getScheduledExecutor(int nThreads, string threadName, long keepAliveTime, JoinableExecutor executor)
 {
     return(new CSJoinableScheduler(threadName, keepAliveTime, executor));;
 }