]> git.ipfire.org Git - thirdparty/squid.git/commit - src/ipc/StoreMap.cc
Portability fixes for Atomic::WordT API.
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Fri, 28 Oct 2011 01:11:23 +0000 (19:11 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 28 Oct 2011 01:11:23 +0000 (19:11 -0600)
commit84bbc4061c1c0e7ef41b0439c952564a778f56f9
tree62e58f2ac61650310f8682127df68b0d304100f2
parent29a9ff4e2a97a1a6c207a3a1fa218d636fbd4bf8
Portability fixes for Atomic::WordT API.

Change parameter types for swap_if() and operator==() from int to
Value.  This fixes some GCC warnings in "fake" implementation when
the AtomicWordT template parameter is unsigned.

Polished (waitingToBeFreed == true) test. waitingToBeFreed is
Atomic::WordT<uint8_t> and GCC does not know whether to cast AtomicWord or
boolean when comparing the two.
src/ipc/AtomicWord.h
src/ipc/StoreMap.cc