Internet Direct (Indy) Version 9.0.1 Beta
SetThreadPriority
Updates the priority of a thread.

procedure SetThreadPriority(AThread: TThread; const APriority: TThreadPriority);
Parameters
AThread: TThread
The thread to be updated.

const APriority: TThreadPriority
The thread priority value to be used for the thread.

Description
SetThreadPriority is a procedure used to update the priority of the thread in AThread to the value specified in APriority.

SetThreadPriority encapsulates the platform-specific procedures and functions used to update the priority of a thread. For the Windows platform, Priority is a published property of TThread.

Note: Since only root is allowed to adjust thread priorities on the Linux platform, calls to SetThreadPriority are ignored regardless of login context.