You can use a periodic timer to provide repeated signals to your process.
The following example illustrates a periodic timer with a delay of a second and a repeating interval of ten milliseconds. It also configures a thread function as the timer expiry notification using
The following example code performs the following tasks:
Creates a notification function (thread function) that must be invoked after timer expiry.
Sets the thread priority to 255 using the thread scheduling parameters (
Creates a timer based on the current system time (
Defines the input values for
Starts the periodic timer using
Uses
The output of the above program is:
Note: Ideally, in the preceding output the handler must have entered 10 times. This is not the case on Symbian platform as there is some latency due to the timer emulation solution and the underlying Symbian platform clock resolution.
You can use a periodic timer to provide repeated signals to your process.
+The following example illustrates a periodic timer with a delay of a second
+and a repeating interval of ten milliseconds. It also configures a thread
+function as the timer expiry notification using
The following example code performs the following tasks:
+Creates a notification +function (thread function) that must be invoked after timer expiry.
Sets the thread priority
+to 255 using the thread scheduling parameters (
Creates a timer based
+on the current system time (
Defines the input values
+for
Starts the periodic
+timer using
Uses
The output of the above program is:
+Note: Ideally, in the preceding output the handler must have entered 10 times. +This is not the case on the Symbian platform as there is some +latency due to the timer emulation solution and the underlying Symbian platform +clock resolution.
+