#include <SingleConsumerQ.h>
Public Member Functions | |
void * | buffer () const |
void | commit (int theSize=0) |
OperateBuffer (SingleConsumerQ &b) | |
int | size () const |
~OperateBuffer () | |
Private Attributes | |
SingleConsumerQ & | b_ |
bool | committed_ |
SingleConsumerQ::Buffer | v_ |
Definition at line 78 of file SingleConsumerQ.h.
edm::SingleConsumerQ::OperateBuffer< T >::OperateBuffer | ( | SingleConsumerQ & | b | ) | [inline, explicit] |
Definition at line 81 of file SingleConsumerQ.h.
edm::SingleConsumerQ::OperateBuffer< T >::~OperateBuffer | ( | ) | [inline] |
Definition at line 83 of file SingleConsumerQ.h.
References edm::SingleConsumerQ::OperateBuffer< T >::b_, edm::SingleConsumerQ::OperateBuffer< T >::committed_, edm::SingleConsumerQ::Buffer::ptr_, cmsPerfSuiteHarvest::release, and edm::SingleConsumerQ::OperateBuffer< T >::v_.
{ if(!committed_) T::release(b_,v_.ptr_); }
void* edm::SingleConsumerQ::OperateBuffer< T >::buffer | ( | ) | const [inline] |
Definition at line 86 of file SingleConsumerQ.h.
References edm::SingleConsumerQ::Buffer::ptr_, and edm::SingleConsumerQ::OperateBuffer< T >::v_.
Referenced by edm::service::ThreadQueue::consume(), and edm::service::ThreadQueue::produce().
{ return v_.ptr_; }
void edm::SingleConsumerQ::OperateBuffer< T >::commit | ( | int | theSize = 0 | ) | [inline] |
Definition at line 88 of file SingleConsumerQ.h.
References edm::SingleConsumerQ::OperateBuffer< T >::b_, edm::SingleConsumerQ::OperateBuffer< T >::committed_, edm::SingleConsumerQ::Buffer::ptr_, and edm::SingleConsumerQ::OperateBuffer< T >::v_.
Referenced by edm::service::ThreadQueue::consume(), and edm::service::ThreadQueue::produce().
{ T::commit(b_, v_.ptr_, theSize); committed_=true; }
int edm::SingleConsumerQ::OperateBuffer< T >::size | ( | void | ) | const [inline] |
Definition at line 87 of file SingleConsumerQ.h.
References edm::SingleConsumerQ::Buffer::len_, and edm::SingleConsumerQ::OperateBuffer< T >::v_.
{ return v_.len_; }
SingleConsumerQ& edm::SingleConsumerQ::OperateBuffer< T >::b_ [private] |
Definition at line 91 of file SingleConsumerQ.h.
Referenced by edm::SingleConsumerQ::OperateBuffer< T >::commit(), and edm::SingleConsumerQ::OperateBuffer< T >::~OperateBuffer().
bool edm::SingleConsumerQ::OperateBuffer< T >::committed_ [private] |
Definition at line 93 of file SingleConsumerQ.h.
Referenced by edm::SingleConsumerQ::OperateBuffer< T >::commit(), and edm::SingleConsumerQ::OperateBuffer< T >::~OperateBuffer().
SingleConsumerQ::Buffer edm::SingleConsumerQ::OperateBuffer< T >::v_ [private] |