Deliver the same message queue to many threads
Posted: Sun Nov 14, 2021 8:55 pm
Hello,
I am trying to program a device that will have MIDI as an input. The device will run multiple threads, some will be interested in the MIDI input, some won't. The threads that are interested in the MIDI messages will process the incoming information, each in a different way. What do you think would be the best way to make sure that all the threads will receive all the incoming MIDI messages, in the order they were received by the MIDI interface?
I am trying to program a device that will have MIDI as an input. The device will run multiple threads, some will be interested in the MIDI input, some won't. The threads that are interested in the MIDI messages will process the incoming information, each in a different way. What do you think would be the best way to make sure that all the threads will receive all the incoming MIDI messages, in the order they were received by the MIDI interface?