DUDS
Distributed Update of Data from Something
Spinlock.cpp
Go to the documentation of this file.
1
/*
2
* This file is part of the DUDS project. It is subject to the BSD-style
3
* license terms in the LICENSE file found in the top-level directory of this
4
* distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
5
* No part of DUDS, including this file, may be copied, modified, propagated,
6
* or distributed except according to the terms contained in the LICENSE file.
7
*
8
* Copyright (C) 2017 Jeff Jackowski
9
*/
10
#include "
Spinlock.hpp
"
11
12
namespace
duds
{
namespace
general {
13
14
bool
Spinlock::useYield
= std::thread::hardware_concurrency() == 1;
15
16
} }
duds
Definition:
Constants.hpp:15
duds::general::Spinlock::useYield
static bool useYield
True when lock() should call yield in its loop; good for uniprocessor, unicore systems.
Definition:
Spinlock.hpp:62
Spinlock.hpp
duds
general
Spinlock.cpp
Generated on Sat Mar 23 2024 19:12:03 for DUDS by
1.8.13