Re: [Development] Thread priority on Linux - Qt 6.9.1

2025-06-27 Thread Tim Blechmann via Development
If not, please consider this suggestion: add a method to QThread that allows setting the scheduling policy, or allows setting the scheduling policy and priority in a single call similar to pthread_setschedparam(). Sorry, the API in question is reserved for root. Since Qt applications are almost

Re: [Development] Thread priority on Linux - Qt 6.9.1

2025-06-27 Thread Art Greenberg
Thank you for responding, Thiago. Actually, its not necessary to be root to use the pthreads priority API. Appropriate settings in /etc/security/limits.conf enable non-root users to alter thread priority. I note that there are several calls to setPriority() found in the Qt libraries, such as

Re: [Development] Thread priority on Linux - Qt 6.9.1

2025-06-27 Thread Thiago Macieira
On Friday, 27 June 2025 21:53:24 Central European Summer Time Art Greenberg wrote: > I am able to overcome that limitation by obtaining the thread handle > returned by QThread::currentThreadId() and using the native pthreads > API. I am aware that this is not suggested in application code. Actual

[Development] Thread priority on Linux - Qt 6.9.1

2025-06-27 Thread Art Greenberg
Sorry to intrude. I'm new to the list, and have joined because I have a question/suggestion that it looks like only the dev team can respond to. I haven't discovered a way to search the list archives to see if my question has previously been answered. I am a hobbyist. I write applications on an