Jive reference manual
|
#include <jem/mt/ThreadSafeOutputStream.h>
Public Types | |
typedef ThreadSafeOutputStream | Self |
typedef OutputStream | Super |
Public Member Functions | |
ThreadSafeOutputStream (Ref< OutputStream > out) | |
ThreadSafeOutputStream (Ref< OutputStream > out, const Ref< IOMutex > &mutex) | |
ThreadSafeOutputStream (const Self &rhs) | |
virtual Ref< OutputStream > | dup () |
void | lock () |
void | unlock () |
virtual void | close () |
virtual void | flush () |
virtual void | write (const void *buf, idx_t n) |
virtual void | writeNoThrow (const void *buf, idx_t n) |
![]() | |
virtual Class * | getClass () const |
Returns the Class instance representing the runtime class of this object. More... | |
virtual String | toString () const |
Returns a short textual description of this object. More... | |
virtual long | hashValue () const |
Returns a hash value for this object. More... | |
virtual bool | equals (const Ref< Object > &obj) const |
Tests whether two objects are equal. More... | |
Ref< Object > | clone () const |
Returns a copy of this object. More... | |
Protected Member Functions | |
ThreadSafeOutputStream () | |
virtual | ~ThreadSafeOutputStream () |
![]() | |
virtual | ~OutputStream () |
![]() | |
Collectable () | |
Creates an empty Collectable . More... | |
~Collectable () | |
Frees resources. More... | |
Protected Attributes | |
Ref< OutputStream > | output_ |
Ref< IOMutex > | mutex_ |
Additional Inherited Members | |
![]() | |
static Class * | getType () |
Returns the Class instance representing the Object class. More... | |
|
explicit |
jem::mt::ThreadSafeOutputStream::ThreadSafeOutputStream | ( | Ref< OutputStream > | out, |
const Ref< IOMutex > & | mutex | ||
) |
jem::mt::ThreadSafeOutputStream::ThreadSafeOutputStream | ( | const Self & | rhs | ) |
|
protected |
|
protectedvirtual |
|
virtual |
Reimplemented from jem::io::OutputStream.
void jem::mt::ThreadSafeOutputStream::lock | ( | ) |
void jem::mt::ThreadSafeOutputStream::unlock | ( | ) |
|
virtual |
Reimplemented from jem::io::OutputStream.
|
virtual |
Reimplemented from jem::io::OutputStream.
|
virtual |
Implements jem::io::OutputStream.
|
virtual |
Reimplemented from jem::io::OutputStream.
|
protected |