csp::common::SleepUntilProcess Class Reference

Inheritance diagram for csp::common::SleepUntilProcess:

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

Detailed Description

A process that sleeps until a specified time.

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


Public Member Functions

 SleepUntilProcess (const csp::Time &_until)
 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::SleepUntilProcess::SleepUntilProcess ( const csp::Time _until  )  [inline]

Constructs the process.

Parameters:
_until The time to wait until, e.g. CurrentTime() + Seconds(1)


Member Function Documentation

void csp::common::SleepUntilProcess::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