updated to the new Pikotools api (new Space struct)
This commit is contained in:
@@ -181,16 +181,17 @@ void ThreadManager::StopAll()
|
||||
for(ThreadItem & item : thread_tab)
|
||||
{
|
||||
log << log4 << "TM: waiting for thread " << id << " (" << item.object->ThreadId()
|
||||
<< ", name: " << item.name << ")" << logend;
|
||||
<< ", name: " << item.name << ")" << logend << logsave;
|
||||
|
||||
item.object->WaitForThread();
|
||||
log << log4 << "TM: thread " << id << " terminated" << logend;
|
||||
log << log4 << "TM: thread " << id << " terminated" << logend << logsave;
|
||||
|
||||
// the thread is stopped and we can set the thread log buffer pointing to
|
||||
// the main log buffer (from the main thread)
|
||||
item.object->set_log_buffer(log.GetLogBuffer());
|
||||
|
||||
delete item.thread_item_data;
|
||||
item.thread_item_data = nullptr;
|
||||
id += 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user