commit | 1db427399c995a474c531a85e648af18033682b2 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Apr 06 11:44:07 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Apr 07 18:18:37 2021 +0200 |
tree | 2b2848f263a30a852afa263cf645593bfe73cb29 | |
parent | 6756d95a8ec2ae15d8070ed4e0e1d66a778c6d7a [diff] |
CLEANUP: atomic: add an explicit _FETCH variant for add/sub/and/or Currently our atomic ops return a value but it's never known whether the fetch is done before or after the operation, which causes some confusion each time the value is desired. Let's create an explicit variant of these operations suffixed with _FETCH to explicitly mention that the fetch occurs after the operation, and make use of it at the few call places.