Reader Class Reference

#include <test-reader.h>

Inheritance diagram for Reader:
Inheritance graph
[legend]
Collaboration diagram for Reader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Reader (Buffer &buf, unsigned int n)
virtual int main ()
 Main function of thread.
virtual ~Reader ()

Private Attributes

Bufferbuffer_
unsigned int n_

Constructor & Destructor Documentation

Reader::Reader ( Buffer buf,
unsigned int  n 
) [inline]
virtual Reader::~Reader (  )  [inline, virtual]

Member Function Documentation

virtual int Reader::main (  )  [inline, virtual]

Main function of thread.

Returns:
the value to keep in status Note that this function should not throw any exceptions except integers. The library will catch any exception e that is thrown erroneously, print e.what() on cerr and return an exit status of BAD_EXCEPTION.
See also:
Dv::Thread::Thread::start
Dv::Thread::Thread::BAD_EXCEPTION
Dv::Thread::Thread::exit
Dv::Thread::Thread::set_status

Reimplemented from Dv::Thread::Thread.

References buffer_, Buffer::get(), Dv::Thread::Thread::id(), and n_.


Member Data Documentation

Buffer& Reader::buffer_ [private]

Referenced by main().

unsigned int Reader::n_ [private]

Referenced by main().


The documentation for this class was generated from the following file:

dvthread-0.13.4 [11 December, 2009]