public void Execute(Action command) { executionCount.AtomicIncrementAndGet(); if (!ignoreExecution.ReadFullFence()) { var th = new Thread(() => command()); th.Name = command.ToString(); th.IsBackground = true; threads.Add(th); th.Start(); } }
public void AtomicIncrementAndGetReturnsNewValue() { Assert.AreEqual(InitialValue + 1, _volatile.AtomicIncrementAndGet()); }