SFML community forums

Help => Network => Topic started by: Naz on September 28, 2015, 11:54:25 am

Title: sf::SocketSelector threadsafe
Post 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
Title: Re: sf::SocketSelector threadsafe
Post by: Laurent on September 28, 2015, 12:10:33 pm
No, sf::SocketSelector::add, as well as all its other functions, is not thread-safe.