Lines Matching refs:Type
86 // Atomic<Type> is a set of (static) operations that can atomically access memory.
92 template <class Type>
94 typedef AtomicTypes<sizeof(Type) * 8> _Ops;
98 static Type add(int delta, Type &store)
99 { return Type(_Ops::add(delta, (_Type &)store)); }
100 static Type addb(int delta, Type &store)
101 { return Type(_Ops::addb(delta, (_Type &)store)); }
103 static bool cas(Type oldValue, Type newValue, Type &store)
105 static bool casb(Type oldValue, Type newValue, Type &store)
114 static Type increment(Type &store) { return add(1, store); }
115 static Type decrement(Type &store) { return add(-1, store); }
117 static Type load(const Type &store) { readBarrier(); return store; }
118 static Type store(Type value, Type &store)