Exemple #1
0
 public void CreateAtomicValContext()
 {
     _atomicVal        = new AtomicVal <Vector2>(new Vector2(-1f, -1f));
     _atomicValBarrier = new ManualResetEvent(false);
     _atomicValThreads = new List <Thread>();
     BenchmarkUtils.PrepareThreads(NumThreads, _atomicValBarrier, WithAtomicVal_Entry, _atomicValThreads);
 }
Exemple #2
0
 public void CreateTupleReturnsContext()
 {
     _atomicLong  = new AtomicLong(0L);
     _atomicInt   = new AtomicInt(0);
     _atomicRef   = new AtomicRef <User>(new User(0, ""));
     _atomicVal8  = new AtomicVal <Val8>(new Val8(0L));
     _atomicVal16 = new AtomicVal <Val16>(new Val16(0L));
     _atomicVal32 = new AtomicVal <Val32>(new Val32(0L));
     _atomicVal64 = new AtomicVal <Val64>(new Val64(0L));
 }