MidiMessageCollector used for several MIDI inputs?

AudioDeviceManager’s addMidiInputDeviceCallback() and removeMidiInputDeviceCallback() both want MidiMessageCollector as their parameter. Is it OK to use one and the same MidiMessageCollector instance for X amount of MIDI inputs or will that cause problems?

What I’m trying to achieve is what most DAWs do by default: enabled MIDI input signals are combined together and then fed to whichever instrument/device/whatever the user has selected at any given time.

Yes, juce::MidiMessageCollector is thread safe for adding messages and pulling the next block of messages.

Thank you!