proxygen
folly::detail::EmulatedFutexAtomic< T > Struct Template Reference

#include <Futex.h>

Inheritance diagram for folly::detail::EmulatedFutexAtomic< T >:

Public Member Functions

 EmulatedFutexAtomic () noexcept=default
 
constexpr EmulatedFutexAtomic (T init) noexcept
 
 EmulatedFutexAtomic (EmulatedFutexAtomic &&rhs)=delete
 

Detailed Description

template<typename T>
struct folly::detail::EmulatedFutexAtomic< T >

A std::atomic subclass that can be used to force Futex to emulate the underlying futex() syscall. This is primarily useful to test or benchmark the emulated implementation on systems that don't need it.

Definition at line 101 of file Futex.h.

Constructor & Destructor Documentation

template<typename T >
folly::detail::EmulatedFutexAtomic< T >::EmulatedFutexAtomic ( )
defaultnoexcept
template<typename T >
constexpr folly::detail::EmulatedFutexAtomic< T >::EmulatedFutexAtomic ( T  init)
inlinenoexcept

Definition at line 103 of file Futex.h.

References folly::detail::rhs.

104  : std::atomic<T>(init) {}
void init(int *argc, char ***argv, bool removeFlags)
Definition: Init.cpp:34
template<typename T >
folly::detail::EmulatedFutexAtomic< T >::EmulatedFutexAtomic ( EmulatedFutexAtomic< T > &&  rhs)
delete

The documentation for this struct was generated from the following file: