DUDS
Distributed Update of Data from Something
Spinlock.hpp File Reference
#include <atomic>
#include <thread>
#include <mutex>
#include <boost/noncopyable.hpp>
Include dependency graph for Spinlock.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  duds::general::Spinlock
 A simple spinlock following the lockable and timed lockable concepts so that it can be used with std::lock_guard, std::unique_lock, and std::lock. More...
 
class  duds::general::SpinlockYieldingWrapper
 A simple wrapper around a Spinlock object that implements the timed lockable concept such that attempts to lock an already locked Spinlock will always yield before trying again. More...
 

Namespaces

 duds
 
 duds::general
 General use library code that isn't actually specific to the DUDS family of libraries, but were developed along with DUDS.
 

Typedefs

typedef std::lock_guard< duds::general::Spinlockduds::general::SpinLockGuard
 A convenience typedef for a std::lock_guard using the Spinlock object. More...
 
typedef std::unique_lock< duds::general::Spinlockduds::general::UniqueSpinLock
 A convenience typedef for a std::unique_lock using the Spinlock object. More...
 
typedef std::unique_lock< duds::general::SpinlockYieldingWrapperduds::general::UniqueYieldingSpinLock
 A convenience typedef for a std::unique_lock using the Spinlock yielding wrapper. More...
 
typedef std::lock_guard< duds::general::SpinlockYieldingWrapperduds::general::YieldingSpinLockGuard
 A convenience typedef for a std::lock_guard using the Spinlock yielding wrapper. More...