mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
[wpiutil] Split DataLog background writer into different class (#6590)
DataLog is now a base class, with DataLogBackgroundWriter being the background thread version and DataLogWriter being a non-threaded version. Also split the C header into a separate file to make it more wpiformat friendly.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/DataLog.h"
|
||||
#include "wpi/DataLogBackgroundWriter.h"
|
||||
#include "wpi/print.h"
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
@@ -22,7 +22,7 @@ int main(int argc, char** argv) {
|
||||
kNumRuns = std::stoi(argv[1]);
|
||||
}
|
||||
|
||||
wpi::log::DataLog log;
|
||||
wpi::log::DataLogBackgroundWriter log;
|
||||
log.SetFilename("test.wpilog");
|
||||
|
||||
auto testVec =
|
||||
|
||||
Reference in New Issue
Block a user