proxygen
folly::MPMCPipeline< In, Stages >::TicketBaseDebug Class Reference

Public Member Functions

 TicketBaseDebug () noexcept
 
 TicketBaseDebug (TicketBaseDebug &&other) noexcept
 
 TicketBaseDebug (MPMCPipeline *owner, uint64_t value) noexcept
 
void check_owner (MPMCPipeline *owner) const
 

Public Attributes

MPMCPipelineowner_
 
uint64_t value_
 

Detailed Description

template<class In, class... Stages>
class folly::MPMCPipeline< In, Stages >::TicketBaseDebug

Definition at line 107 of file MPMCPipeline.h.

Constructor & Destructor Documentation

template<class In, class... Stages>
folly::MPMCPipeline< In, Stages >::TicketBaseDebug::TicketBaseDebug ( )
inlinenoexcept

Definition at line 109 of file MPMCPipeline.h.

109 : owner_(nullptr), value_(0xdeadbeeffaceb00c) {}
template<class In, class... Stages>
folly::MPMCPipeline< In, Stages >::TicketBaseDebug::TicketBaseDebug ( TicketBaseDebug &&  other)
inlinenoexcept

Definition at line 110 of file MPMCPipeline.h.

111  : owner_(std::exchange(other.owner_, nullptr)),
112  value_(std::exchange(other.value_, 0xdeadbeeffaceb00c)) {}
T exchange(T &obj, U &&new_value)
Definition: Utility.h:120
template<class In, class... Stages>
folly::MPMCPipeline< In, Stages >::TicketBaseDebug::TicketBaseDebug ( MPMCPipeline owner,
uint64_t  value 
)
inlineexplicitnoexcept

Definition at line 113 of file MPMCPipeline.h.

114  : owner_(owner), value_(value) {}
uint64_t value(const typename LockFreeRingBuffer< T, Atom >::Cursor &rbcursor)

Member Function Documentation

template<class In, class... Stages>
void folly::MPMCPipeline< In, Stages >::TicketBaseDebug::check_owner ( MPMCPipeline owner) const
inline

Definition at line 115 of file MPMCPipeline.h.

References folly::MPMCPipeline< In, Stages >::TicketBaseDebug::owner_.

115  {
116  CHECK(owner == owner_);
117  }

Member Data Documentation

template<class In, class... Stages>
MPMCPipeline* folly::MPMCPipeline< In, Stages >::TicketBaseDebug::owner_
template<class In, class... Stages>
uint64_t folly::MPMCPipeline< In, Stages >::TicketBaseDebug::value_

Definition at line 120 of file MPMCPipeline.h.


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