Topic Path: Symbol Reference > Classes > TIdSchedulerOfThread Class > TIdSchedulerOfThread Properties > ThreadPriority Property
ContentsIndexHome
PreviousUpNext
TIdSchedulerOfThread.ThreadPriority Property

Represents the thread priority assigned to threads created in the scheduler.

property ThreadPriority: TIdThreadPriority;

ThreadPriority is a TIdThreadPriority property that represents the default thread priority assigned to threads created in the thread-based scheduler. 

The default value for ThreadPriority is tpNormal, as assigned during initialization of the component instance. Assign a value from the TIdThreadPriority enumeration to the property to alter the priority given to the thread during pre-emptive scheduling in the operating system. 

ThreadPriority is used in NewThread when initializing the TIdThreadWithTask instance for the yarn.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.