Atomic(T)
A value that may be updated atomically.
- If
Tis a reference type, or a union type containing only reference types orNil, then only#compare_and_set,#swap,#set,#lazy_set,#get, and#lazy_getare available. - If
Tis a pointer type, then the above methods plus#maxand#minare available. - If
Tis a non-union primitive integer type or enum type, then all operations are supported.
Instance methods
increment_and_get
Source