I'd like to know what is the best way to build a multi-threaded event system using Boost::signals2 and Boost::thread.
In my project, I have a network class that listen to incoming connection in a thread. When a player connects, the class should be able to raise an event to my server handler class and other functions listening to the signal. Thing is, the server and the other functions can be in threads too, and the called function MUST NOT be withing the network class context, but within the context that subscribed to the event.
What is the best way to do this? I have heard of polling but I'm not sure how this can be used here, using threads and signals.
tldr: Be able to listen to signals that are in other threads.