Dv::Thread::ActorPool< HandlerFactory >::Actor Class Reference

#include <actorpool.h>

Inheritance diagram for Dv::Thread::ActorPool< HandlerFactory >::Actor:
Inheritance graph
[legend]
Collaboration diagram for Dv::Thread::ActorPool< HandlerFactory >::Actor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Actor (ActorPool< HandlerFactory > &pool, Dv::shared_ptr< Handler > handler)
Handlerhandler ()
int main ()
 Main function of thread.

Private Attributes

ActorPool< HandlerFactory > & pool_
Dv::shared_ptr< Handlerhandler_

template<typename HandlerFactory>
class Dv::Thread::ActorPool< HandlerFactory >::Actor


Constructor & Destructor Documentation

template<typename HandlerFactory>
Dv::Thread::ActorPool< HandlerFactory >::Actor::Actor ( ActorPool< HandlerFactory > &  pool,
Dv::shared_ptr< Handler handler 
) [inline]

Member Function Documentation

template<typename HandlerFactory>
Handler& Dv::Thread::ActorPool< HandlerFactory >::Actor::handler (  )  [inline]
template<typename HandlerFactory>
int Dv::Thread::ActorPool< HandlerFactory >::Actor::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 Dv::Thread::ActorPool< HandlerFactory >::Actor::handler_, Dv::Thread::Thread::killed(), and Dv::Thread::ActorPool< HandlerFactory >::Actor::pool_.


Member Data Documentation

template<typename HandlerFactory>
ActorPool<HandlerFactory>& Dv::Thread::ActorPool< HandlerFactory >::Actor::pool_ [private]
template<typename HandlerFactory>
Dv::shared_ptr<Handler> Dv::Thread::ActorPool< HandlerFactory >::Actor::handler_ [private]

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

dvthread-0.13.4 [11 December, 2009]