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/mutex/mutex.cc b/aos/mutex/mutex.cc
index c5570aa..ef4fbbe 100644
--- a/aos/mutex/mutex.cc
+++ b/aos/mutex/mutex.cc
@@ -5,7 +5,7 @@
#include <string.h>
#include "aos/type_traits/type_traits.h"
-#include "aos/logging/logging.h"
+#include "glog/logging.h"
namespace aos {
@@ -19,8 +19,8 @@
} else if (ret == 1) {
return true;
} else {
- AOS_LOG(FATAL, "mutex_grab(%p(=%" PRIu32 ")) failed with %d\n", &impl_,
- impl_.futex, ret);
+ LOG(FATAL) << "mutex_grab(" << &impl_ << "(=" << std::hex << impl_.futex
+ << ")) failed with " << ret;
}
}
@@ -38,8 +38,8 @@
case 4:
return State::kLockFailed;
default:
- AOS_LOG(FATAL, "mutex_trylock(%p(=%" PRIu32 ")) failed with %d\n", &impl_,
- impl_.futex, ret);
+ LOG(FATAL) << "mutex_trylock(" << &impl_ << "(=" << std::hex
+ << impl_.futex << ")) failed with " << ret;
}
}