SFML community forums
Help => Network => Topic started by: Naz on September 28, 2015, 11:54:25 am
-
Hi,
I was wondering if it would be thread safe to call sf::SocketSelector.add(). Since it does not really store objects, but just has a ref to them. I have to do this, cause an extern lib calls a callback function in my server from its own thread, kinda annoying but ye. If this call would be safe, no need for mutexes and stuff
Gr
-
No, sf::SocketSelector::add, as well as all its other functions, is not thread-safe.