]> git.ipfire.org Git - thirdparty/squid.git/commit
Check for and use __sync_sub_and_fetch() and such for atomic decrement.
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 15 Sep 2011 03:44:50 +0000 (21:44 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 15 Sep 2011 03:44:50 +0000 (21:44 -0600)
commitd92c39afcf222da9ff2f41abf127ccf15ff68094
treed41db2c8eb2e1d5f1c89076e2b65c3bfd9d2e296
parentfc3921ecffe7edba4dc180b48358d9ccedef5eba
Check for and use __sync_sub_and_fetch() and such for atomic decrement.

This is possibly more efficient or perhaps even the only correct way to
decrement atomically. It also helps ICC compiler happier. Somehow, I missed
that __sync_fetch_and_sub() and such exist!
configure.ac
src/ipc/AtomicWord.h