|
EvolvingObjects
|
Finally block of the main algorithm. More...
#include <eoMpi.h>
Public Member Functions | |
| FinallyBlock (int _totalWorkers, AssignmentAlgorithm &_algo, Job< JobData > &_that) | |
Protected Attributes | |
| int | totalWorkers |
| AssignmentAlgorithm & | assignmentAlgo |
| Job< JobData > & | that |
| bmpi::communicator & | comm |
Finally block of the main algorithm.
Herb Sutter's trick for having a finally block, in a try/catch section: invoke a class at the beginning of the try, its destructor will be called in every cases.
This implements the end of the master algorithm: