StdDawnTilDusk Class Reference

Inherits DawnTilDusk.

Collaboration diagram for StdDawnTilDusk:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 StdDawnTilDusk ()
 ~StdDawnTilDusk ()
virtual Schedulersunrise (string who)
virtual void sunset (string who)
virtual void wait_for_finish ()
virtual void print_active_object_list ()


Detailed Description

This pool relies on one Thread spawner and will serialize the incoming requests by sending them to an active object. The scheduler requested for the self active object (called "ao-pool") will be itself, however, when the sun sets for the ao-pool will the application terminate. The sun will set for ao-pool when it finds no active requests pending. This pool offers the following advantages

Definition at line 44 of file ao-pool.cpp.


Constructor & Destructor Documentation

StdDawnTilDusk::StdDawnTilDusk (  )  [inline]

Definition at line 50 of file ao-pool.cpp.

StdDawnTilDusk::~StdDawnTilDusk (  )  [inline]

Definition at line 58 of file ao-pool.cpp.


Member Function Documentation

virtual void StdDawnTilDusk::print_active_object_list (  )  [inline, virtual]

can be called to print the list of active objects

Implements DawnTilDusk.

Definition at line 98 of file ao-pool.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual Scheduler* StdDawnTilDusk::sunrise ( string  who  )  [inline, virtual]

Called by the constructor of each active object to obtain a scheduler for itself

Implements DawnTilDusk.

Definition at line 67 of file ao-pool.cpp.

Here is the call graph for this function:

virtual void StdDawnTilDusk::sunset ( string  who  )  [inline, virtual]

Called by the scheduler whenever an active object dies

Implements DawnTilDusk.

Definition at line 76 of file ao-pool.cpp.

Here is the call graph for this function:

virtual void StdDawnTilDusk::wait_for_finish (  )  [inline, virtual]

Implements DawnTilDusk.

Definition at line 82 of file ao-pool.cpp.

Here is the call graph for this function:


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

Generated on Sun Apr 4 23:26:09 2010 for Active Objects by  doxygen 1.5.9