Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

ost::Runable Class Reference

A container for objects that can be queued against a runlist. runable object with notify when ready. More...

#include <misc.h>

List of all members.

Public Methods

bool starting (Runlist *list)
 Start the object against a run list. More...

void stoping (void)
 Stop the object, called when stopping or ready completes. More...


Protected Methods

 Runable ()
virtual ~Runable ()
virtual void ready (void)=0
 Method handler that is invoked when a wait-listed object becomes ready to run. More...


Detailed Description

A container for objects that can be queued against a runlist. runable object with notify when ready.

Author:
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

ost::Runable::Runable ( ) [protected]
 

ost::Runable::~Runable ( ) [protected, virtual]
 


Member Function Documentation

void ost::Runable::ready ( void ) [protected, pure virtual]
 

Method handler that is invoked when a wait-listed object becomes ready to run.

bool ost::Runable::starting ( Runlist * list )
 

Start the object against a run list.

Returns:
true if immediately available to run.
Parameters:
list   to start under.

void ost::Runable::stoping ( void )
 

Stop the object, called when stopping or ready completes.

May also be used for a task that has not yet started to remove it from the wait list.


Friends And Related Function Documentation

class Runlist [friend]
 


The documentation for this class was generated from the following file:
Generated at Fri May 30 14:51:03 2008 for GNU CommonC++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001