Indy 9
|
procedure SetThreadPriority(AThread: TThread; const APriority: TIdThreadPriority; const APolicy: Integer = -MaxInt);
On the Linux platform, thread priority can only be increased for threads running with "root" login permissions. In this situation, SetThreadPriority will only allow non-root threads to lower their thread priority using the libc setpriority function. An attempt to increase thread priority for a non-root thread is ignored.