public SpinWaitGroup( PerformanceTimer performanceTimer ) { if (performanceTimer == null) { throw new ArgumentNullException("performanceTimer"); } _performanceTimer = performanceTimer; }
public IWaitGroup CreateWaitGroup( PerformanceTimer performanceTimer ) { if (performanceTimer == null) { throw new ArgumentNullException("performanceTimer"); } return new SpinWaitGroup(performanceTimer); }
public MonitorWaitGroup( PerformanceTimer performanceTimer ) { if (performanceTimer == null) { throw new ArgumentNullException("performanceTimer"); } _performanceTimer = performanceTimer; _waitGroup = new MonitorEventGroup( MonitorEventTypeEnum.Manual, MonitorEventTypeEnum.Auto ); }
public TestTask( int repeatCount, long microsecondsBetweenAwakes, long[] times ) : base(Guid.NewGuid(), microsecondsBetweenAwakes) { if (times == null) { throw new ArgumentNullException("times"); } _repeatCount = repeatCount; _times = times; _timer = new PerformanceTimer(); }
public StandardWaitGroup( PerformanceTimer performanceTimer ) { if (performanceTimer == null) { throw new ArgumentNullException("performanceTimer"); } _performanceTimer = performanceTimer; _events = new WaitHandle[] { _stop, _restart, }; }