public FizzBuzzEventHandler(FizzBuzzStep fizzBuzzStep, long iterations, ManualResetEvent mru) { _fizzBuzzStep = fizzBuzzStep; _iterations = iterations; _mru = mru; _fizzBuzzCounter = new Volatile.PaddedLong(0); }
private void ResetCounters() { _remainCount.AtomicExchange(MAX_MSG_COUNT); for (int i = 0; i < POP_CNT; i++) { _counters[i] = new Volatile.PaddedLong(0); _eventHandlers[i].Reset(); _workHandlers[i].Reset(); } }
public void SetUp() { _volatile = new Volatile.PaddedLong(InitialValue); }