Merge changes Id529d52b,If41592ff
* changes:
Flip flatbuffers ForceDefault default to true.
Add names to timer and phased loop handlers.
diff --git a/aos/events/event_loop.h b/aos/events/event_loop.h
index fde7273..a83cfb1 100644
--- a/aos/events/event_loop.h
+++ b/aos/events/event_loop.h
@@ -196,6 +196,14 @@
// Stop future calls to callback().
virtual void Disable() = 0;
+
+ // Sets and gets the name of the timer. Set this if you want a descriptive
+ // name in the timing report.
+ void set_name(std::string_view name) { name_ = std::string(name); }
+ const std::string_view name() const { return name_; }
+
+ private:
+ std::string name_;
};
// Interface for phased loops. They are built on timers.
@@ -208,6 +216,14 @@
virtual void set_interval_and_offset(
const monotonic_clock::duration interval,
const monotonic_clock::duration offset) = 0;
+
+ // Sets and gets the name of the timer. Set this if you want a descriptive
+ // name in the timing report.
+ void set_name(std::string_view name) { name_ = std::string(name); }
+ const std::string_view name() const { return name_; }
+
+ private:
+ std::string name_;
};
// TODO(austin): Ping pong example apps, and then start doing introspection.
diff --git a/third_party/flatbuffers/include/flatbuffers/flatbuffers.h b/third_party/flatbuffers/include/flatbuffers/flatbuffers.h
index f7b99ef..3d83cc4 100644
--- a/third_party/flatbuffers/include/flatbuffers/flatbuffers.h
+++ b/third_party/flatbuffers/include/flatbuffers/flatbuffers.h
@@ -1022,7 +1022,7 @@
nested(false),
finished(false),
minalign_(1),
- force_defaults_(false),
+ force_defaults_(true),
dedup_vtables_(true),
string_pool(nullptr) {
EndianCheck();
@@ -1041,7 +1041,7 @@
nested(false),
finished(false),
minalign_(1),
- force_defaults_(false),
+ force_defaults_(true),
dedup_vtables_(true),
string_pool(nullptr) {
EndianCheck();