proxygen
MicroSpinLock.h File Reference
#include <array>
#include <atomic>
#include <cassert>
#include <cstdint>
#include <mutex>
#include <type_traits>
#include <folly/Portability.h>
#include <folly/lang/Align.h>
#include <folly/synchronization/detail/Sleeper.h>

Go to the source code of this file.

Classes

struct  folly::MicroSpinLock
 
struct  folly::SpinLockArray< T, N >
 
struct  folly::SpinLockArray< T, N >::PaddedSpinLock
 

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 

Macros

#define FOLLY_CACHE_LINE_SIZE   64
 

Typedefs

typedef std::lock_guard< MicroSpinLock > folly::MSLGuard
 

Macro Definition Documentation

#define FOLLY_CACHE_LINE_SIZE   64

Array of spinlocks where each one is padded to prevent false sharing. Useful for shard-based locking implementations in environments where contention is unlikely.

Definition at line 122 of file MicroSpinLock.h.