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

Author Topic: A close() function in sf::Thread  (Read 4485 times)

0 Members and 1 Guest are viewing this topic.

1aam2am1

  • Newbie
  • *
  • Posts: 13
    • View Profile
A close() function in sf::Thread
« on: June 15, 2015, 05:33:36 pm »
I would like to call the closing event for my thread. Not force close, without releasing resources.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: A close() function in sf::Thread
« Reply #1 on: June 15, 2015, 05:57:16 pm »
Then use wait() instead. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: A close() function in sf::Thread
« Reply #2 on: June 15, 2015, 06:04:22 pm »
And, if you can, use std::thread rather than sf::Thread :)