The initInstance method initializes the singleton instance.
Public
RP_FRAMEWORK_DLL static OMTimerManager* initInstance(
int tickTime =
OMTimerManagerDefaults::defaultTicktime,
unsigned int maxTM =
OMTimerManagerDefaults::defaultMaxTM,
OMBoolean isRealTimeModel=TRUE);
ticktime
Specifies the basic system tick, in milliseconds. At every tick, the Rational® Rhapsody® framework and user application are notified that the time was advanced.
The defaultTicktime specifies
the default tick time, defined in timer.h as follows:
static
const unsigned defaultTicktime;
The
default value is specified in oxf.cpp as follows:
const
unsigned OMTimerManagerDefaults::
defaultTicktime = 100;
maxTM
Specifies the maximum number of timeouts that can exist simultaneously in the system. The value for maxTM is used to construct the heap and the matured list for storing timeouts.
The defaultMaxTM is defined in timer.h as
follows:
static const unsigned defaultMaxTM;
The default value is specified in oxf.cpp as
follows:
const unsigned OMTimerManagerDefaults::
defaultMaxTM = 100;
isRealTimeModel
Specifies whether the time model is real (TRUE) or simulated (FALSE).