

Public Member Functions | |
| StdDawnTilDusk () | |
| ~StdDawnTilDusk () | |
| virtual Scheduler * | sunrise (string who) |
| virtual void | sunset (string who) |
| virtual void | wait_for_finish () |
| virtual void | print_active_object_list () |
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
| StdDawnTilDusk::StdDawnTilDusk | ( | ) | [inline] |
| StdDawnTilDusk::~StdDawnTilDusk | ( | ) | [inline] |
| virtual void StdDawnTilDusk::print_active_object_list | ( | ) | [inline, virtual] |
can be called to print the list of active objects
Implements DawnTilDusk.
| virtual Scheduler* StdDawnTilDusk::sunrise | ( | string | who | ) | [inline, virtual] |
Called by the constructor of each active object to obtain a scheduler for itself
Implements DawnTilDusk.
References aoPool.
| virtual void StdDawnTilDusk::sunset | ( | string | who | ) | [inline, virtual] |
Called by the scheduler whenever an active object dies
Implements DawnTilDusk.
| virtual void StdDawnTilDusk::wait_for_finish | ( | ) | [inline, virtual] |
Implements DawnTilDusk.
1.6.2