public bool OnEvent(ValueEvent @event, long sequence, bool endOfBatch)
        {
            value.WriteCompilerOnlyFence(value.ReadCompilerOnlyFence() + @event.Value);

            if (count == sequence)
            {
                latch.Signal();
            }

            return(true);
        }
Ejemplo n.º 2
0
 public void ReadCompilerOnlyFenceReturnsInitialValue()
 {
     Assert.AreEqual(InitialValue, _volatile.ReadCompilerOnlyFence());
 }