]> git.puffer.fish Git - mirror/frr.git/commit
libs: add atomic xxx_and_fetch apis 2933/head
authorMark Stapp <mjs@voltanet.io>
Tue, 28 Aug 2018 16:48:58 +0000 (12:48 -0400)
committerMark Stapp <mjs@voltanet.io>
Tue, 28 Aug 2018 16:48:58 +0000 (12:48 -0400)
commitb086e4672a765d89949af1ebd20555c9ee83631a
tree5ca2767c9b6c53de40a94380b891a677777161e3
parent9c42f07ccbe9534c48b7660640708da8cd371711
libs: add atomic xxx_and_fetch apis

We have the fetch_and_xxx apis, which return the _old_ value;
adding the xxx_and_fetch versions, which return the new value.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
lib/frratomic.h