Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Eigen::EventCount Class Reference

#include <EventCount.h>

Classes

class  Waiter
 

Public Member Functions

void CancelWait ()
 
void CommitWait (Waiter *w)
 
 EventCount (MaxSizeVector< Waiter > &waiters)
 
void Notify (bool notifyAll)
 
void Prewait ()
 
 ~EventCount ()
 

Private Member Functions

 EventCount (const EventCount &)=delete
 
void operator= (const EventCount &)=delete
 
void Park (Waiter *w)
 
void Unpark (Waiter *w)
 

Static Private Member Functions

static void CheckState (uint64_t state, bool waiter=false)
 

Private Attributes

std::atomic< uint64_tstate_
 
MaxSizeVector< Waiter > & waiters_
 

Static Private Attributes

static const uint64_t kEpochBits = 64 - kEpochShift
 
static const uint64_t kEpochInc = 1ull << kEpochShift
 
static const uint64_t kEpochMask = ((1ull << kEpochBits) - 1) << kEpochShift
 
static const uint64_t kEpochShift = 3 * kWaiterBits
 
static const uint64_t kSignalInc = 1ull << kSignalShift
 
static const uint64_t kSignalMask
 
static const uint64_t kSignalShift = 2 * kWaiterBits
 
static const uint64_t kStackMask = (1ull << kWaiterBits) - 1
 
static const uint64_t kWaiterBits = 14
 
static const uint64_t kWaiterInc = 1ull << kWaiterShift
 
static const uint64_t kWaiterMask
 
static const uint64_t kWaiterShift = kWaiterBits
 

Detailed Description

Definition at line 49 of file EventCount.h.

Constructor & Destructor Documentation

◆ EventCount() [1/2]

Eigen::EventCount::EventCount ( MaxSizeVector< Waiter > &  waiters)
inline

Definition at line 53 of file EventCount.h.

◆ ~EventCount()

Eigen::EventCount::~EventCount ( )
inline

Definition at line 58 of file EventCount.h.

◆ EventCount() [2/2]

Eigen::EventCount::EventCount ( const EventCount )
privatedelete

Member Function Documentation

◆ CancelWait()

void Eigen::EventCount::CancelWait ( )
inline

Definition at line 109 of file EventCount.h.

◆ CheckState()

static void Eigen::EventCount::CheckState ( uint64_t  state,
bool  waiter = false 
)
inlinestaticprivate

Definition at line 209 of file EventCount.h.

◆ CommitWait()

void Eigen::EventCount::CommitWait ( Waiter w)
inline

Definition at line 79 of file EventCount.h.

◆ Notify()

void Eigen::EventCount::Notify ( bool  notifyAll)
inline

Definition at line 130 of file EventCount.h.

◆ operator=()

void Eigen::EventCount::operator= ( const EventCount )
privatedelete

◆ Park()

void Eigen::EventCount::Park ( Waiter w)
inlineprivate

Definition at line 220 of file EventCount.h.

◆ Prewait()

void Eigen::EventCount::Prewait ( )
inline

Definition at line 66 of file EventCount.h.

◆ Unpark()

void Eigen::EventCount::Unpark ( Waiter w)
inlineprivate

Definition at line 228 of file EventCount.h.

Member Data Documentation

◆ kEpochBits

const uint64_t Eigen::EventCount::kEpochBits = 64 - kEpochShift
staticprivate

Definition at line 203 of file EventCount.h.

◆ kEpochInc

const uint64_t Eigen::EventCount::kEpochInc = 1ull << kEpochShift
staticprivate

Definition at line 205 of file EventCount.h.

◆ kEpochMask

const uint64_t Eigen::EventCount::kEpochMask = ((1ull << kEpochBits) - 1) << kEpochShift
staticprivate

Definition at line 204 of file EventCount.h.

◆ kEpochShift

const uint64_t Eigen::EventCount::kEpochShift = 3 * kWaiterBits
staticprivate

Definition at line 202 of file EventCount.h.

◆ kSignalInc

const uint64_t Eigen::EventCount::kSignalInc = 1ull << kSignalShift
staticprivate

Definition at line 201 of file EventCount.h.

◆ kSignalMask

const uint64_t Eigen::EventCount::kSignalMask
staticprivate
Initial value:
= ((1ull << kWaiterBits) - 1)

Definition at line 199 of file EventCount.h.

◆ kSignalShift

const uint64_t Eigen::EventCount::kSignalShift = 2 * kWaiterBits
staticprivate

Definition at line 198 of file EventCount.h.

◆ kStackMask

const uint64_t Eigen::EventCount::kStackMask = (1ull << kWaiterBits) - 1
staticprivate

Definition at line 193 of file EventCount.h.

◆ kWaiterBits

const uint64_t Eigen::EventCount::kWaiterBits = 14
staticprivate

Definition at line 192 of file EventCount.h.

◆ kWaiterInc

const uint64_t Eigen::EventCount::kWaiterInc = 1ull << kWaiterShift
staticprivate

Definition at line 197 of file EventCount.h.

◆ kWaiterMask

const uint64_t Eigen::EventCount::kWaiterMask
staticprivate
Initial value:
= ((1ull << kWaiterBits) - 1)

Definition at line 195 of file EventCount.h.

◆ kWaiterShift

const uint64_t Eigen::EventCount::kWaiterShift = kWaiterBits
staticprivate

Definition at line 194 of file EventCount.h.

◆ state_

std::atomic<uint64_t> Eigen::EventCount::state_
private

Definition at line 206 of file EventCount.h.

◆ waiters_

MaxSizeVector<Waiter>& Eigen::EventCount::waiters_
private

Definition at line 207 of file EventCount.h.


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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:38