mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpilibc,ntcoreffi] DataLogManager: join on Stop() call (#5910)
This ensures the thread has finished prior to returning from Stop().
This commit is contained in:
@@ -482,7 +482,7 @@ void DataLogManager::Start(std::string_view dir, std::string_view filename,
|
||||
void DataLogManager::Stop() {
|
||||
auto& inst = GetInstance();
|
||||
inst.owner.GetThread()->m_log.Stop();
|
||||
inst.owner.Stop();
|
||||
inst.owner.Join();
|
||||
}
|
||||
|
||||
void DataLogManager::Log(std::string_view message) {
|
||||
|
||||
Reference in New Issue
Block a user