Hello,
is it correct, that Messages could only be “sent” to the same instance of MessageListener?
Found that in juce_MessageListener.h:
void MessageListener::postMessage (Message* const message) const
{
message->recipient = const_cast<MessageListener*> (this);
message->post();
}
If I want to use that system to share messages between two threads, both threads must know the same instance of MessageListener, right?
What else can I use in order to send messages from one thread to another one. Is there anything existing, where I can send messages to multiple receivers? Or better: where a receiver can specify via an ID which message can be received.
Sincerely,
Mike