updated to the new pikotools api (changes in Log)

This commit is contained in:
2021-06-24 21:17:03 +02:00
parent bf1f0954b9
commit b6340a30d2
10 changed files with 38 additions and 28 deletions

View File

@@ -82,8 +82,8 @@ void ThreadManager::Add(BaseThread * pbase, const wchar_t * thread_name)
item.object->set_dependency(this);
// main log buffer (from the main thread)
item.object->set_main_log_buffer(log.GetLogBuffer());
item.object->set_main_file_log(log.GetFileLog());
item.object->set_main_log_buffer(log.get_log_buffer());
item.object->set_main_file_log(log.get_file_log());
// the logger buffer and model_connector are different
item.object->set_log_buffer(&data.log_buffer);
@@ -200,7 +200,7 @@ void ThreadManager::StopAll()
// 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());
item.object->set_log_buffer(log.get_log_buffer());
delete item.thread_item_data;
item.thread_item_data = nullptr;