
#include <convcomlibmanager.h>

Public Member Functions | |
| ConvComlibManager () | |
| void | setInitialized () |
| CmiBool | getInitialized () |
| void | doneCreating () |
| Used to broadcast all strategies to all processors after inserting them. | |
| void | tableReady () |
| Switch all the strategies in the "inSync" status to "ready" and deposit into the strategies all pending messages. | |
| void | enableStrategy (int loc) |
| void | setStrategy (int loc, Strategy *s) |
| int | getNumStrats () |
| void | incrementNumStrats () |
| void | decrementNumStrats () |
| Strategy * | getStrategy (int loc) |
| int | isReady (int loc) |
| int | isNew (int loc) |
| int | isInSync (int loc) |
| void | inSync (int loc) |
| CkQ< MessageHolder * > * | getTmpList (int loc) |
| void | insertMessage (MessageHolder *msg, int instid) |
| void | doneInserting (int loc) |
| StrategyTableEntry * | getStrategyTable (int loc) |
| void | printDiagnostics () |
Data Fields | |
| int | acksReceived |
| count how many acks have been received for the current synchronization | |
| CmiBool | doneCreatingScheduled |
| used when a doneCreating is called before the previous one is finished | |
| CmiBool | busy |
| true when the manager is busy synchronizing the strategies | |
Private Member Functions | |
| int | insertStrategy (Strategy *s) |
| Insert a strategy into the system table, and return a handle to be used to access the strategy later. | |
Private Attributes | |
| StrategyTable | strategyTable |
| a table containing all the strategies in the system | |
| CmiBool | init_flag |
| it is true after the system has been initialized at the program startup | |
| int | nstrats |
| the number of strategies currently present in the system | |
Friends | |
| class | Strategy |
| void * | comlibReceiveTableHandler (void *msg) |
| Method invoked upon receipt of the strategy table. | |
Being in Converse, this is a pure class allocated into a global variable.
Definition at line 39 of file convcomlibmanager.h.
| void ConvComlibManager::setInitialized | ( | ) | [inline] |
| CmiBool ConvComlibManager::getInitialized | ( | ) | [inline] |
Definition at line 62 of file convcomlibmanager.h.
References init_flag.
Referenced by initConvComlibManager().
| int ConvComlibManager::getNumStrats | ( | ) | [inline] |
Definition at line 84 of file convcomlibmanager.h.
References nstrats.
Referenced by ComlibManager::sendBufferedMessagesAllStrategies().
| void ConvComlibManager::incrementNumStrats | ( | ) | [inline] |
| void ConvComlibManager::decrementNumStrats | ( | ) | [inline] |
Definition at line 87 of file convcomlibmanager.h.
References strategyTable.
Referenced by ComlibManager::getStrategy().
Definition at line 88 of file convcomlibmanager.h.
References strategyTable.
Referenced by ComlibManager::bracketedStartErrorRecoveryProcess(), doneInserting(), ComlibManager::endIteration(), insertMessage(), and printDiagnostics().
Definition at line 89 of file convcomlibmanager.h.
References strategyTable.
Referenced by doneCreating().
Definition at line 90 of file convcomlibmanager.h.
References strategyTable.
Referenced by tableReady().
| void ConvComlibManager::inSync | ( | int | loc | ) | [inline] |
| CkQ<MessageHolder*>* ConvComlibManager::getTmpList | ( | int | loc | ) | [inline] |
| void ConvComlibManager::doneInserting | ( | int | loc | ) | [inline] |
Definition at line 102 of file convcomlibmanager.h.
References isReady(), and strategyTable.
Referenced by ComlibManager::bracketedReleaseBufferedMessages(), and ComlibManager::endIteration().
| StrategyTableEntry* ConvComlibManager::getStrategyTable | ( | int | loc | ) | [inline] |
Definition at line 109 of file convcomlibmanager.h.
References strategyTable.
Referenced by ComlibManager::ArraySend(), ComlibManager::beginIteration(), ComlibManager::bracketedCatchUpPE(), ComlibManager::bracketedConfirmCount(), ComlibManager::bracketedContributeDiscovery(), ComlibManager::bracketedCountConfirmed(), ComlibManager::bracketedDiscover(), ComlibManager::bracketedErrorDetected(), ComlibManager::bracketedFinalBarrier(), ComlibManager::bracketedReceiveCount(), ComlibManager::bracketedReceiveNewCount(), ComlibManager::bracketedReceiveNewPeList(), ComlibManager::bracketedReleaseBufferedMessages(), ComlibManager::bracketedReleaseCount(), ComlibManager::bracketedStartDiscovery(), ComlibManager::bracketedStartErrorRecoveryProcess(), ComlibManager::endIteration(), ComlibManager::getStrategyTableEntry(), ComlibManager::GroupSend(), ComlibManager::multicast(), ComlibManager::printDiagnostics(), ComlibManager::sendBufferedMessages(), and ComlibManager::shouldBufferMessagesNow().
friend class Strategy [friend] |
Definition at line 48 of file convcomlibmanager.h.
| void* comlibReceiveTableHandler | ( | void * | msg | ) | [friend] |
Method invoked upon receipt of the strategy table.
Definition at line 137 of file convcomlibmanager.C.
Referenced by initConvComlibManager().
a table containing all the strategies in the system
Definition at line 42 of file convcomlibmanager.h.
Referenced by doneCreating(), doneInserting(), enableStrategy(), getStrategy(), getStrategyTable(), getTmpList(), insertMessage(), insertStrategy(), inSync(), isInSync(), isNew(), isReady(), printDiagnostics(), setStrategy(), and tableReady().
CmiBool ConvComlibManager::init_flag [private] |
it is true after the system has been initialized at the program startup
Definition at line 44 of file convcomlibmanager.h.
Referenced by ConvComlibManager(), getInitialized(), and setInitialized().
int ConvComlibManager::nstrats [private] |
the number of strategies currently present in the system
Definition at line 46 of file convcomlibmanager.h.
Referenced by ConvComlibManager(), decrementNumStrats(), doneCreating(), getNumStrats(), incrementNumStrats(), and insertStrategy().
count how many acks have been received for the current synchronization
Definition at line 53 of file convcomlibmanager.h.
Referenced by ConvComlibManager(), and doneCreating().
used when a doneCreating is called before the previous one is finished
Definition at line 55 of file convcomlibmanager.h.
Referenced by ConvComlibManager(), and doneCreating().
true when the manager is busy synchronizing the strategies
Definition at line 57 of file convcomlibmanager.h.
Referenced by ConvComlibManager(), and doneCreating().
1.5.5