proxygen
|
#include <WaitOptions.h>
Classes | |
struct | Defaults |
Public Member Functions | |
std::chrono::nanoseconds | spin_max () const |
WaitOptions & | spin_max (std::chrono::nanoseconds dur) |
Private Attributes | |
std::chrono::nanoseconds | spin_max_ = Defaults::spin_max |
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.
|
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().
|
inline |
|
private |
Definition at line 67 of file WaitOptions.h.
Referenced by spin_max().