TiThreadTimers.ThreadPriority6

TiThreadTimers See Also

Determines the priority of the thread used to fire the OnTimer event.

property ThreadPriority6 : TThreadPriority;

Description

ThreadPriority6 determines the priority of the thread used.

Note
: If your application is set to Normal priority on the operating system, setting the Timer's Thread to tpTimeCritical is only Normal priority relative to other applications running on the system. The priority of the Timer thread is relative to other threads or objects that are running in your main application.

Windows schedules CPU cycles to each thread based on a priority scale; the ThreadPriority6 property adjusts a timer's thread priority higher or lower on the scale with respect to the main application thread.

Use ThreadPriority6 to specify the thread priority. The default value is tpNormal.

Value
Meaning
tpIdle
The thread executes only when the system is idle-Windows won't interrupt other threads to execute a thread with tpIdle priority.
tpLowest
The thread's priority is two points below normal.
tpLower
The thread's priority is one point below normal.
tpNormal
The thread has normal priority.
tpHigher
The thread's priority is one point above normal.
tpHighest
The thread's priority is two points above normal.
tpTimeCritical
The thread gets highest priority.

Example

Delphi

iComponent.ThreadPriority6 := tpHighest;

C++ Builder

iComponent->ThreadPriority6 = tpHighest;

Contents | Index | Previous | Next