mongo::task::Server Class Reference

#include <msg.h>

Inheritance diagram for mongo::task::Server:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void call (const lam &)
void requeue ()
void send (lam)
 Server (string name)
virtual ~Server ()

Protected Member Functions

virtual void starting ()

Private Member Functions

void doWork ()
virtual bool initClient ()
virtual string name () const

Private Attributes

string _name
boost::condition c
deque< lamd
boost::mutex m
bool rq

Detailed Description

typical usage is: task::fork( new Server("threadname") );

Definition at line 28 of file msg.h.


Constructor & Destructor Documentation

mongo::task::Server::Server ( string  name  )  [inline]

Definition at line 33 of file msg.h.

virtual mongo::task::Server::~Server (  )  [inline, virtual]

Definition at line 34 of file msg.h.


Member Function Documentation

void mongo::task::Server::call ( const lam  ) 

send message but block until function completes

void mongo::task::Server::doWork (  )  [private, virtual]

Implements mongo::task::Task.

virtual bool mongo::task::Server::initClient (  )  [inline, private, virtual]

Definition at line 46 of file msg.h.

virtual string mongo::task::Server::name (  )  const [inline, private, virtual]

Implements mongo::task::Task.

Definition at line 47 of file msg.h.

void mongo::task::Server::requeue (  )  [inline]

Definition at line 39 of file msg.h.

void mongo::task::Server::send ( lam   ) 

send a message to the port

virtual void mongo::task::Server::starting (  )  [inline, protected, virtual]

Reimplemented in mongo::Manager.

Definition at line 43 of file msg.h.


Member Data Documentation

string mongo::task::Server::_name [private]

Definition at line 52 of file msg.h.

boost::condition mongo::task::Server::c [private]

Definition at line 51 of file msg.h.

deque<lam> mongo::task::Server::d [private]

Definition at line 49 of file msg.h.

boost::mutex mongo::task::Server::m [private]

Definition at line 50 of file msg.h.

bool mongo::task::Server::rq [private]

Definition at line 53 of file msg.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:59 2013