[DEBUG] Correct end of gale::Thread

This commit is contained in:
Edouard DUPIN 2017-02-07 21:30:08 +01:00
parent 714dcf4128
commit c8a47c2860

View File

@ -66,6 +66,8 @@ void gale::Thread::stop() {
if (m_state == state::stop) {
return;
}
// Request thread stop ==> other wise, we waint indefinitly ...
m_state = state::stopping;
while ( m_state == state::running
|| m_state == state::starting) {
// requesting a stop ...