commit | 22d675cb772f6e123412b7a8aee55425499a30cf | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Apr 06 12:11:04 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Apr 07 18:18:37 2021 +0200 |
tree | 577fe7bc2d96a6640928918b4338fd98511b4ced | |
parent | 185157201c3cf1becc95a195b7e4bf2a1eb7ff58 [diff] |
CLEANUP: atomic: add HA_ATOMIC_INC/DEC for unit increments Most ADD/SUB callers use them for a single unit (e.g. refcounts) and it's a pain to always pass ",1". Let's add them to simplify the API. However we currently don't add any return value. If needed in the future better report zero/non-zero than a real value for the sake of efficiency at the instruction level.