Struct to represent a successful atomic transition with the before and after values
| 196 | |
| 197 | // Struct to represent a successful atomic transition with the before and after values |
| 198 | struct AtomicStateTransition { |
| 199 | AtomicStateTransition(AtomicState x, AtomicState y) |
| 200 | : before(x), after(y) {} |
| 201 | AtomicState before; |
| 202 | AtomicState after; |
| 203 | }; |
| 204 | static_assert(sizeof(AtomicStateTransition) == 8, |
| 205 | "AtomicStateTransition has unexpected size"); |
| 206 |