cds  2.3.2
cds::intrusive::basket_queue::stat< Counter > Struct Template Reference

BasketQueue internal statistics. May be used for debugging or profiling. More...

#include <cds/intrusive/basket_queue.h>

Public Types

typedef Counter counter_type
 Counter type.
 

Public Member Functions

void onEnqueue ()
 Register enqueue call.
 
void onDequeue ()
 Register dequeue call.
 
void onEnqueueRace ()
 Register enqueue race event.
 
void onDequeueRace ()
 Register dequeue race event.
 
void onAdvanceTailFailed ()
 Register "advance tail failed" event.
 
void onBadTail ()
 Register event "Tail is not pointed to last item in the queue".
 
void onTryAddBasket ()
 Register an attempt t add new item to basket.
 
void onAddBasket ()
 Register event "Enqueue a new item into basket" (only or BasketQueue, for other queue this metric is not used)
 
void onEmptyDequeue ()
 Register dequeuing from empty queue.
 

Data Fields

counter_type m_EnqueueCount
 Enqueue call count.
 
counter_type m_DequeueCount
 Dequeue call count.
 
counter_type m_EnqueueRace
 Count of enqueue race conditions encountered.
 
counter_type m_DequeueRace
 Count of dequeue race conditions encountered.
 
counter_type m_AdvanceTailError
 Count of "advance tail failed" events.
 
counter_type m_BadTail
 Count of events "Tail is not pointed to the last item in the queue".
 
counter_type m_TryAddBasket
 Count of attemps adding new item to a basket (only or BasketQueue, for other queue this metric is not used)
 
counter_type m_AddBasketCount
 Count of events "Enqueue a new item into basket" (only or BasketQueue, for other queue this metric is not used)
 
counter_type m_EmptyDequeue
 Count of dequeue from empty queue.
 

Detailed Description

template<typename Counter = cds::atomicity::event_counter>
struct cds::intrusive::basket_queue::stat< Counter >

BasketQueue internal statistics. May be used for debugging or profiling.

Template argument Counter defines type of counter. Default is cds::atomicity::event_counter, that is weak, i.e. it is not guaranteed strict event counting. You may use stronger type of counter like as cds::atomicity::item_counter, or even integral type, for example, int.


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

cds 2.3.2 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Dec 31 2017 12:10:40 by Doxygen 1.8.13