]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/AtomicWord.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / ipc / AtomicWord.cc
1 /*
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 /* DEBUG: section 54 Interprocess Communication */
10
11 #include "squid.h"
12 #include "ipc/AtomicWord.h"
13 #include "tools.h"
14
15 bool Ipc::Atomic::Enabled()
16 {
17 #if HAVE_ATOMIC_OPS
18 return true;
19 #else
20 return !UsingSmp();
21 #endif
22 }
23