Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sf::SocketSelector threadsafe  (Read 1761 times)

0 Members and 1 Guest are viewing this topic.

Naz

  • Newbie
  • *
  • Posts: 7
    • View Profile
sf::SocketSelector threadsafe
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: sf::SocketSelector threadsafe
« Reply #1 on: September 28, 2015, 12:10:33 pm »
No, sf::SocketSelector::add, as well as all its other functions, is not thread-safe.
Laurent Gomila - SFML developer