Description
CLIP provides a number of functions that can identify the index of the process. These allow the code to make processing decisions dependent on the index. They can be called anywhere in the code, but are often called in OnPrestart to initialise any Run-Time Attributes.
Generation
The ClpThisMasterId function identifies index of this master process
Uns ClpThisMasterId();
The Root Master has a fixed index of 0. Each Sub Master take the index specified in the Process Attributes.
Return
The function returns the index of this master.
Examples
bool MyProc1Process::OnPrestart()
{
...
if ( ClpThisMasterId() == 0 )
gROOT_MASTER = TRUE;
else
gROOT_MASTER = FALSE;
...
}