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