Jive reference manual
|
#include <jem/mt/ThreadSafeInputStream.h>
Public Types | |
typedef ThreadSafeInputStream | Self |
typedef InputStream | Super |
Public Member Functions | |
ThreadSafeInputStream (Ref< InputStream > in) | |
ThreadSafeInputStream (Ref< InputStream > in, const Ref< IOMutex > &mutex) | |
ThreadSafeInputStream (const Self &rhs) | |
virtual Ref< InputStream > | dup () |
void | lock () |
void | unlock () |
virtual void | close () |
virtual idx_t | poll (const Time &timeout) |
virtual idx_t | read (void *buf, idx_t n) |
virtual idx_t | skip (idx_t n) |
Public Member Functions inherited from jem::Object | |
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 | |
ThreadSafeInputStream () | |
virtual | ~ThreadSafeInputStream () |
Protected Member Functions inherited from jem::io::InputStream | |
virtual | ~InputStream () |
Protected Member Functions inherited from jem::Collectable | |
Collectable () | |
Creates an empty Collectable . More... | |
~Collectable () | |
Frees resources. More... | |
Protected Attributes | |
Ref< InputStream > | input_ |
Ref< IOMutex > | mutex_ |
Additional Inherited Members | |
Static Public Member Functions inherited from jem::Object | |
static Class * | getType () |
Returns the Class instance representing the Object class. More... | |
|
explicit |
jem::mt::ThreadSafeInputStream::ThreadSafeInputStream | ( | Ref< InputStream > | in, |
const Ref< IOMutex > & | mutex | ||
) |
jem::mt::ThreadSafeInputStream::ThreadSafeInputStream | ( | const Self & | rhs | ) |
|
protected |
|
protectedvirtual |
|
virtual |
Reimplemented from jem::io::InputStream.
void jem::mt::ThreadSafeInputStream::lock | ( | ) |
void jem::mt::ThreadSafeInputStream::unlock | ( | ) |
|
virtual |
Reimplemented from jem::io::InputStream.
|
virtual |
Reimplemented from jem::io::InputStream.
|
virtual |
Implements jem::io::InputStream.
|
virtual |
Reimplemented from jem::io::InputStream.
|
protected |