Simplify aos::Init
Most of the variants were to deal with core, which has been gone for a
year. Simplify those all into InitGoogle.
InitGoogle should be renamed to Init at some point. It does everything
now.
Change-Id: I738ee03e9c5b2e6348ef33302835f915df68011f
diff --git a/aos/realtime.h b/aos/realtime.h
index bb5ea84..c695add 100644
--- a/aos/realtime.h
+++ b/aos/realtime.h
@@ -13,20 +13,6 @@
// your thread RT. Called as part of ShmEventLoop::Run()
void InitRT();
-// Sets the current thread back down to non-realtime priority.
-void UnsetCurrentThreadRealtimePriority();
-
-// Sets the name of the current thread.
-// This will displayed by `top -H`, dump_rtprio, and show up in logs.
-// name can have a maximum of 16 characters.
-void SetCurrentThreadName(const std::string_view name);
-
-// Sets the current thread's realtime priority.
-void SetCurrentThreadRealtimePriority(int priority);
-
-// Sets the current thread's scheduling affinity.
-void SetCurrentThreadAffinity(const cpu_set_t &cpuset);
-
// Sets up this process to write core dump files.
// This is called by Init*, but it's here for other files that want this
// behavior without calling Init*.
@@ -36,6 +22,23 @@
void ExpandStackSize();
+// Sets the name of the current thread.
+// This will displayed by `top -H`, dump_rtprio, and show up in logs.
+// name can have a maximum of 16 characters.
+void SetCurrentThreadName(const std::string_view name);
+
+// Sets the current thread's scheduling affinity.
+void SetCurrentThreadAffinity(const cpu_set_t &cpuset);
+
+// Everything below here needs AOS to be initialized before it will work
+// properly.
+
+// Sets the current thread's realtime priority.
+void SetCurrentThreadRealtimePriority(int priority);
+
+// Sets the current thread back down to non-realtime priority.
+void UnsetCurrentThreadRealtimePriority();
+
// Registers our hooks which crash on RT malloc.
void RegisterMallocHook();