| 43 | // adjust result of the atomic function by adding/subtracting one. |
| 44 | |
| 45 | void Value32::Update(uint32_t new_value) { u32.store(new_value); } |
| 46 | uint32_t Value32::Add(uint32_t n) { return u32.fetch_add(n) + 1; } |
| 47 | uint32_t Value32::Sub(uint32_t n) { return u32.fetch_sub(n) - 1; } |
| 48 |
no test coverage detected