Sirikata
Public Member Functions | Private Attributes
Sirikata::SizedResourceMonitor Class Reference

#include <SizedThreadSafeQueue.hpp>

Collaboration diagram for Sirikata::SizedResourceMonitor:

List of all members.

Public Member Functions

void reset ()
uint32 maxSize () const
uint32 filledSize () const
 SizedResourceMonitor (uint32 limit)
template<class T >
bool preIncrement (T value, bool force)
template<class T >
bool preIncrement (T *value, bool force)
template<class T >
void postDecrement (T value)
template<class T >
void postDecrement (T *value)
template<class T >
bool probablyCanPush (T t)
template<class T >
bool probablyCanPush (T *t)
bool probablyCanPush (size_t size)

Private Attributes

AtomicValue< int32 > mSize
const int32 mLimit

Constructor & Destructor Documentation

Sirikata::SizedResourceMonitor::SizedResourceMonitor ( uint32  limit) [inline]

References mLimit.


Member Function Documentation

uint32 Sirikata::SizedResourceMonitor::filledSize ( ) const [inline]
uint32 Sirikata::SizedResourceMonitor::maxSize ( ) const [inline]
template<class T >
void Sirikata::SizedResourceMonitor::postDecrement ( value) [inline]

References mSize.

template<class T >
void Sirikata::SizedResourceMonitor::postDecrement ( T *  value) [inline]

References mSize.

template<class T >
bool Sirikata::SizedResourceMonitor::preIncrement ( value,
bool  force 
) [inline]

References mLimit, and mSize.

template<class T >
bool Sirikata::SizedResourceMonitor::preIncrement ( T *  value,
bool  force 
) [inline]

References mLimit, and mSize.

template<class T >
bool Sirikata::SizedResourceMonitor::probablyCanPush ( T *  t) [inline]
template<class T >
bool Sirikata::SizedResourceMonitor::probablyCanPush ( t) [inline]
bool Sirikata::SizedResourceMonitor::probablyCanPush ( size_t  size) [inline]
void Sirikata::SizedResourceMonitor::reset ( ) [inline]

References mSize.


Member Data Documentation


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