Ejemplo n.º 1
0
 public ScheduledUnit(OwnedThreadsScheduler scheduler, int id)
 {
     this.scheduler = scheduler;
     this.stopped   = false;
     this.thread    = new Thread(Run);
     this.thread.Start(id);
 }
Ejemplo n.º 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;
 }