Make code run again on roborio
The code was still running some of the old queue stuff and getting
confused. Disable the old queue implementation stuff in initialization.
Change-Id: I3f4128c5fc71825845091cb52314b358bb9a182b
diff --git a/aos/init.cc b/aos/init.cc
index 957899c7..5d62868 100644
--- a/aos/init.cc
+++ b/aos/init.cc
@@ -58,25 +58,18 @@
google::InstallFailureSignalHandler();
}
-void InitNRT(bool for_realtime) {
+void InitNRT() {
InitStart();
- aos_core_create_shared_mem(false, for_realtime && ShouldBeRealtime());
- logging::RegisterQueueImplementation();
ExpandStackSize();
- AOS_LOG(INFO, "%s initialized non-realtime\n", program_invocation_short_name);
}
void InitCreate() {
InitStart();
- aos_core_create_shared_mem(true, false);
- logging::RegisterQueueImplementation();
AOS_LOG(INFO, "%s created shm\n", program_invocation_short_name);
}
void Init(int relative_priority) {
InitStart();
- aos_core_create_shared_mem(false, ShouldBeRealtime());
- logging::RegisterQueueImplementation();
GoRT(relative_priority);
}