initInstance

This method creates an instance of OMThreadTimer. OMThreadTimer is a singleton.

Visibility
Public
Signature
RP_FRAMEWORK_DLL static OMThreadTimer* initInstance(
   int ticktime =
      OMTimerManagerDefaults::defaultTicktime,
   unsigned maxTM = OMTimerManagerDefaults::defaultMaxTM,
   OMBoolean isRealTimeModel = TRUE);
Parameters
ticktime

Specifies the basic system tick, in milliseconds. Every ticktime, the framework and user application are notified that the time was advanced.

OMTimerManagerDefaults class is 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 matured list for storing timeouts.

OMTimerManagerDefaults class 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;


Feedback