MT#62181 removal from list with lock held

Change-Id: I6c650429066df638d2a3b2a24c55e86a8c9b55fe
mr13.5
Richard Fuchs 1 year ago
parent ca2ff68669
commit 1b33d022e7

@ -165,7 +165,9 @@ void AmThreadWatcher::run()
if(cur_thread->is_stopped()){
DBG("thread %lu has been destroyed.\n", cur_thread->_pid);
cur_thread->join();
_l.lock();
it = thread_list.erase(it);
_l.unlock();
delete cur_thread;
}
else {

Loading…
Cancel
Save