mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
[wpiutil] DataLog: Ensure file is written on shutdown (#6087)
Previously the thread could end without the file being written.
This commit is contained in:
@@ -486,12 +486,12 @@ class DataLog final {
|
||||
mutable wpi::mutex m_mutex;
|
||||
wpi::condition_variable m_cond;
|
||||
bool m_doFlush{false};
|
||||
bool m_shutdown{false};
|
||||
enum State {
|
||||
kStart,
|
||||
kActive,
|
||||
kPaused,
|
||||
kStopped,
|
||||
kShutdown,
|
||||
} m_state = kActive;
|
||||
double m_period;
|
||||
std::string m_extraHeader;
|
||||
|
||||
Reference in New Issue
Block a user