Sirikata
|
#include <BatchedBuffer.hpp>
Classes | |
struct | IOVec |
Public Member Functions | |
BatchedBuffer () | |
void | write (const IOVec *iov, uint32 iovcnt) |
void | flush () |
void | store (FILE *os) |
bool | empty () |
Private Types | |
typedef Batch< uint8 > | ByteBatch |
Private Member Functions | |
void | write (const void *buf, uint32 nbytes) |
Private Attributes | |
boost::recursive_mutex | mMutex |
ByteBatch * | filling |
std::deque< ByteBatch * > | batches |
typedef Batch<uint8> Sirikata::BatchedBuffer::ByteBatch [private] |
Sirikata::BatchedBuffer::BatchedBuffer | ( | ) |
bool Sirikata::BatchedBuffer::empty | ( | ) |
References batches, filling, and mMutex.
Referenced by Sirikata::Trace::Trace::storageThread().
void Sirikata::BatchedBuffer::flush | ( | ) |
References batches, filling, and mMutex.
Referenced by Sirikata::Trace::Trace::shutdown(), and write().
void Sirikata::BatchedBuffer::store | ( | FILE * | os | ) |
References batches, Sirikata::Batch< T >::items, mMutex, and Sirikata::Batch< T >::size.
Referenced by Sirikata::Trace::Trace::storageThread().
void Sirikata::BatchedBuffer::write | ( | const IOVec * | iov, |
uint32 | iovcnt | ||
) |
References mMutex.
Referenced by Sirikata::Trace::Trace::writeRecord().
void Sirikata::BatchedBuffer::write | ( | const void * | buf, |
uint32 | nbytes | ||
) | [private] |
std::deque<ByteBatch*> Sirikata::BatchedBuffer::batches [private] |
ByteBatch* Sirikata::BatchedBuffer::filling [private] |
boost::recursive_mutex Sirikata::BatchedBuffer::mMutex [private] |