CatapultServer
v0.5.0.1 (Elephant)
|
Container for disruptor barriers. More...
Public Member Functions | |
DisruptorBarriers (size_t levelsCount) | |
Creates levelsCount barriers with consecutive levels. More... | |
size_t | size () const |
Returns number of barriers. More... | |
const DisruptorBarrier & | operator[] (size_t level) const |
Returns a barrier at a given level. More... | |
DisruptorBarrier & | operator[] (size_t level) |
Returns a barrier at a given level. More... | |
Private Attributes | |
std::vector< std::unique_ptr< DisruptorBarrier > > | m_barriers |
Holds all barriers (barrier level is an index). More... | |
Container for disruptor barriers.
|
explicit |
Creates levelsCount barriers with consecutive levels.
|
inline |
Returns a barrier at a given level.
|
inline |
Returns a barrier at a given level.
|
inline |
Returns number of barriers.
|
private |
Holds all barriers (barrier level is an index).