Threads #1275
Replies: 2 comments 1 reply
-
Hello! We use pthreads in some places because those threads need to have real time priority. However there is some recent progress in MusE. From the ChangeLog 25.05.23:
The 'disk prefetch thread' referred to above is the class 'AudioPrefetch : public Thread', found in audioprefetch.h Another real time thread in MusE is the ALSA midi sequencer thread class 'MidiSeq : public Thread', found in midiseq.h So, that's two threads that maybe could be ignored or eliminated, at least under Windows. |
Beta Was this translation helpful? Give feedback.
-
I assume the question is for portability to Windows, where the QThread priority settings align with the operating system (i think). I remember wondering a long time a go if we could change to QThreads, #ifdef LINUX and aquire the pthread /from/ the QThread (as it certainly is a pthread internally) and do the SCHED_FIFO settings only in this case? I don't know a lot about std::thread, I assume it is also portable, don't know if it allows for SCHED_FIFO realtime settings. |
Beta Was this translation helpful? Give feedback.
-
I have three questions:
Beta Was this translation helpful? Give feedback.
All reactions