I am using a InterProcessConnection to synchronise 20 plugins with a master plugin (InterProcessConnectionServer). The only thing the plugin does is attenuate the gain.
I just realise, that the IPC threads are spinning free burning CPU.
The readNextMessageInt() method is supposed to block, but it doesn’t:
What I did was, to add breakpoints inside
if (bytesInMessage > 0) and
if (bytesInMessage < 0) => not hit, but if I put a breakpoint inside the thread loop, it is hit straight away.
Plus my CPU readings go up to ~150%:
I think that shouldn’t happen.
Is there anything on my end, that I need to do to throttle down the threads?