27 #include <lunchbox/buffer.h>
28 #include <lunchbox/referenced.h>
33 namespace detail {
class Buffer; }
43 class Buffer :
public lunchbox::Bufferb,
public lunchbox::Referenced
53 bool isFree()
const {
return getRefCount() == 0; }
56 detail::Buffer*
const _impl;
57 LB_TS_VAR( _writeThread );
59 virtual void notifyFree();
62 std::ostream& operator << ( std::ostream&,
const Buffer& );
A listener interface to buffer state changes.
CO_API Buffer(BufferListener *listener=0)
Construct a new buffer.
A receive buffer for a Connection.
virtual CO_API ~Buffer()
Destruct this buffer.