Inheritance diagram for csp::common::Successor< DATA_TYPE >:
The increment is done using the prefix ++ operator. This process is included because of its occam history, and its use in the commstime benchmark. However, you may also find a use for it.
To use this process, you will need to include <cppcsp/common/basic.h>
Public Member Functions | |
Successor (const Chanin< DATA_TYPE > &_in, const Chanout< DATA_TYPE > &_out) | |
Constructs the Successor process. | |
Protected Member Functions | |
void | run () |
You must implement this function to provide the code for your process. |
csp::common::Successor< DATA_TYPE >::Successor | ( | const Chanin< DATA_TYPE > & | _in, | |
const Chanout< DATA_TYPE > & | _out | |||
) | [inline] |
void csp::common::Successor< DATA_TYPE >::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.