Merge pull request #5532 from grundman:patch-2
This commit is contained in:
commit
66f2000548
@ -304,14 +304,18 @@ void ForThread::stop()
|
||||
{
|
||||
if(m_state == eFTStarted)
|
||||
{
|
||||
pthread_mutex_lock(&m_thread_mutex);
|
||||
m_state = eFTToStop;
|
||||
pthread_mutex_unlock(&m_thread_mutex);
|
||||
|
||||
run();
|
||||
|
||||
pthread_join(m_posix_thread, NULL);
|
||||
}
|
||||
|
||||
pthread_mutex_lock(&m_thread_mutex);
|
||||
m_state = eFTStoped;
|
||||
pthread_mutex_unlock(&m_thread_mutex);
|
||||
}
|
||||
|
||||
void ForThread::run()
|
||||
|
Loading…
x
Reference in New Issue
Block a user