예제 #1
0
 public ScheduledUnit(OwnedThreadsScheduler scheduler, int id)
 {
     this.scheduler = scheduler;
     this.stopped   = false;
     this.thread    = new Thread(Run);
     this.thread.Start(id);
 }
예제 #2
0
 public WrapperStreamObserver(IStreamObserver <TK, TP> o, OwnedThreadsScheduler scheduler, Guid classId, TaskEntry t)
 {
     this.o         = o;
     this.scheduler = scheduler;
     this.classId   = classId;
     this.te        = t;
 }