csp::common::SleepForProcess Class Reference

Inheritance diagram for csp::common::SleepForProcess:

csp::CSProcess csp::ThreadCSProcess boost::noncopyable List of all members.

Detailed Description

A process that sleeps for a specified amount of time.

This process is mainly useful to put before another in sequence (delaying the start of the later process).


Public Member Functions

 SleepForProcess (const csp::Time &_delay)
 Constructs the process.

Protected Member Functions

void run ()
 You must implement this function to provide the code for your process.


Constructor & Destructor Documentation

csp::common::SleepForProcess::SleepForProcess ( const csp::Time _delay  )  [inline]

Constructs the process.

Parameters:
_delay The amount of time to wait for, e.g. Seconds(1)


Member Function Documentation

void csp::common::SleepForProcess::run (  )  [inline, protected, virtual]

You must implement this function to provide the code for your process.

When the run method finishes, the process will terminate.

You should not let an uncaught exception cause the end of this function. If it derives from std::exception, it will be caught (although this behaviour should not be relied upon) but otherwise undefined behaviour will result.

Implements csp::ThreadCSProcess.


Generated on Mon Aug 20 12:24:29 2007 for C++CSP2 by  doxygen 1.4.7