public void CreateAtomicValContext() { _atomicVal = new OptimisticallyLockedValue <Vector2>(new Vector2(-1f, -1f)); _atomicValBarrier = new ManualResetEvent(false); _atomicValThreads = new List <Thread>(); BenchmarkUtils.PrepareThreads(NumThreads, _atomicValBarrier, WithAtomicVal_Entry, _atomicValThreads); }
public void CreateTupleReturnsContext() { _atomicInt64 = new LockFreeInt64(0L); _atomicInt32 = new LockFreeInt32(0); _atomicRef = new LockFreeReference <User>(new User(0, "")); _atomicVal8 = new OptimisticallyLockedValue <Val8>(new Val8(0L)); _atomicVal16 = new OptimisticallyLockedValue <Val16>(new Val16(0L)); _atomicVal32 = new OptimisticallyLockedValue <Val32>(new Val32(0L)); _atomicVal64 = new OptimisticallyLockedValue <Val64>(new Val64(0L)); }