proxygen
folly::WaitOptions Class Reference

#include <WaitOptions.h>

Classes

struct  Defaults
 

Public Member Functions

std::chrono::nanoseconds spin_max () const
 
WaitOptionsspin_max (std::chrono::nanoseconds dur)
 

Private Attributes

std::chrono::nanoseconds spin_max_ = Defaults::spin_max
 

Detailed Description

WaitOptions

Various synchronization primitives as well as various concurrent data structures built using them have operations which might wait. This type represents a set of options for controlling such waiting.

Definition at line 30 of file WaitOptions.h.

Member Function Documentation

std::chrono::nanoseconds folly::WaitOptions::spin_max ( ) const
inline

Definition at line 58 of file WaitOptions.h.

References spin_max_.

Referenced by folly::UnboundedQueue< T, false, 6 >::getAllocNextSegment(), and folly::detail::spin_pause_until().

58  {
59  return spin_max_;
60  }
std::chrono::nanoseconds spin_max_
Definition: WaitOptions.h:67
WaitOptions& folly::WaitOptions::spin_max ( std::chrono::nanoseconds  dur)
inline

Definition at line 61 of file WaitOptions.h.

References spin_max_.

61  {
62  spin_max_ = dur;
63  return *this;
64  }
std::chrono::nanoseconds spin_max_
Definition: WaitOptions.h:67

Member Data Documentation

std::chrono::nanoseconds folly::WaitOptions::spin_max_ = Defaults::spin_max
private

Definition at line 67 of file WaitOptions.h.

Referenced by spin_max().


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