SFML community forums

Help => System => Topic started by: Richy19 on October 25, 2013, 12:07:14 pm

Title: Checking if thread is still running
Post by: Richy19 on October 25, 2013, 12:07:14 pm
Is there anyway to check if a thread is still alive in SFML?
Title: Re: Checking if thread is still running
Post by: eXpl0it3r on October 25, 2013, 12:08:54 pm
Not with SFML function, but you can simply use a std::atomic<bool> or std::atomic_flag (C++11 features) and set it once the thread finishes. ;)