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

2025-06-28 Thread Tim Blechmann via Development
Is the RealtimeKit you're referring to the product from Cloudflare? not the cloudflare product, the dbus service: https://github.com/heftig/rtkit https://venam.net/blog/unix/2025/03/24/rtkit.html -- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/develo

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

2025-06-28 Thread Art Greenberg
Thanks Tim. Is the RealtimeKit you're referring to the product from Cloudflare? I happen to be doing bidirectional audio streaming. The server is a commercial embedded Linux device, a two-way radio: https://elecraft.com/products/k4-transceiver At the moment I don't see how the Cloudflare pro

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

2025-06-28 Thread Thiago Macieira
On Saturday, 28 June 2025 00:20:01 Central European Summer Time Art Greenberg wrote: > 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 believe you're talking about the

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