OSCReceiver thread safe adding and removal of listeners


Hello everyone,

how are we supposed to thread-safe add or remove OSCReceiver::Listeners from OSCReceiver. It has a thread pulling data from the datagram socket constantly, and does access its internal osc listener list in no threadsafe way.

The only way right now is to disconnect the OSCReceiver, removing the listener and then reconnecting, if I am not mistaken.

Does it make sense to use a lock for add/remove operations, to allow for quick runtime adding and removal of listeners?
Best regards,


Ok, I get its not intended to be used that way, users have to write their address mapping object themselves. Makes sense, use cases can end up to be pretty diverse.