Cleanup: Use Atomic_relaxed for trx_t::state
For reading trx_t::state we can avoid acquiring trx_t::mutex. Atomic load and store should be similar to normal load and store on most instruction set architectures. The atomicity of the operation would merely prohibit the compiler from reordering some operations.
Showing
Please register or sign in to comment