public void ConstructorWithLengthSetExpectedLength() { const int length = 2; _volatile = new _Volatile.IntegerArray(length); Assert.AreEqual(length, _volatile.Length); }
public MultiProducerSequencer(int bufferSize, IWaitStrategy waitStrategy) : base(bufferSize, waitStrategy) { indexMask = bufferSize - 1; indexShift = Util.Log2(bufferSize); pendingPublication = new _Volatile.IntegerArray(bufferSize); _pendingMask = bufferSize - 1; InitialiseAvailableBuffer(); }
public void SetUp() { _volatile = new _Volatile.IntegerArray(InitialValues); }