Writer Class Reference

#include <test-writer.h>

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

List of all members.

Public Member Functions

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

Private Attributes

Bufferbuffer_
unsigned int n_

Constructor & Destructor Documentation

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

Member Function Documentation

int Writer::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_, Dv::Thread::Thread::id(), n_, and Buffer::put().


Member Data Documentation

Buffer& Writer::buffer_ [private]

Referenced by main().

unsigned int Writer::n_ [private]

Referenced by main().


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

dvthread-0.13.4 [11 December, 2009]