public Job ChangeAction(EffectAction.Action action) { lock (lockObject) { this.action = action; } return(this); }
public Sweeper RegisterJob(EffectAction.Action job) { lock (lockJobs) { jobs.Add(job); } return(this); }
public Job Reset(EffectAction.Action action, TimeSpan oneSweepDuration, int?iterations) { lock (lockObject) { this.action = action; this.step = (double)SweeperTables.DataPoints / (1000 / (double)intervalMs) / oneSweepDuration.TotalSeconds; this.iterationCounter = iterations; } return(this); }
internal Job(EffectAction.Action action, TimeSpan oneSweepDuration, int intervalMs, int?iterations) { this.action = action; this.intervalMs = intervalMs; this.iterationCounter = iterations; this.offset1 = 0; this.offset2 = SweeperTables.DataPoints / 4; this.offset3 = SweeperTables.DataPoints / 2; this.iterationsComplete = new ManualResetEvent(false); SetDuration(oneSweepDuration); }
public MasterSweeper.Job RegisterJob(EffectAction.Action action, TimeSpan oneSweepDuration, int?iterations) { var job = new MasterSweeper.Job(action, oneSweepDuration, this.intervalMs, iterations); lock (lockTicks) { lock (lockJobs) { jobs.Add(job); } } return(job); }
public Job Reset(EffectAction.Action action, TimeSpan oneSweepDuration, int? iterations) { lock (lockObject) { this.action = action; this.step = (double)SweeperTables.DataPoints / (1000 / (double)intervalMs) / oneSweepDuration.TotalSeconds; this.iterationCounter = iterations; } return this; }
public Job ChangeAction(EffectAction.Action action) { lock (lockObject) { this.action = action; } return this; }