Lines Matching refs:store
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)
104 { return _Ops::cas(_Type(oldValue), _Type(newValue), (_Type &)store); }
105 static bool casb(Type oldValue, Type newValue, Type &store)
106 { return _Ops::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)
119 { while (!casb(store, value, store)) {}; return value; }