Convert aos over to flatbuffers
Everything builds, and all the tests pass. I suspect that some entries
are missing from the config files, but those will be found pretty
quickly on startup.
There is no logging or live introspection of queue messages.
Change-Id: I496ee01ed68f202c7851bed7e8786cee30df29f5
diff --git a/aos/event.cc b/aos/event.cc
index a0115dc..1b60362 100644
--- a/aos/event.cc
+++ b/aos/event.cc
@@ -3,7 +3,7 @@
#include <chrono>
#include "aos/type_traits/type_traits.h"
-#include "aos/logging/logging.h"
+#include "glog/logging.h"
namespace aos {
@@ -16,8 +16,8 @@
while (__atomic_load_n(&impl_, __ATOMIC_SEQ_CST) == 0) {
const int ret = futex_wait(&impl_);
if (ret != 0) {
- AOS_CHECK_EQ(-1, ret);
- AOS_PLOG(FATAL, "futex_wait(%p) failed", &impl_);
+ CHECK_EQ(-1, ret);
+ PLOG(FATAL) << "futex_wait(" << &impl_ << ") failed";
}
}
}
@@ -37,8 +37,8 @@
const int ret = futex_wait_timeout(&impl_, &timeout_timespec);
if (ret != 0) {
if (ret == 2) return false;
- AOS_CHECK_EQ(-1, ret);
- AOS_PLOG(FATAL, "futex_wait(%p) failed", &impl_);
+ CHECK_EQ(-1, ret);
+ PLOG(FATAL) << "futex_wait(" << &impl_ << ") failed";
}
}
}
@@ -47,7 +47,7 @@
// to condition variable-based implementations.
void Event::Set() {
if (futex_set(&impl_) == -1) {
- AOS_PLOG(FATAL, "futex_set(%p) failed", &impl_);
+ PLOG(FATAL) << "futex_set(" << &impl_ << ") failed";
}
}