name our threads for ease of debugging

Change-Id: If35518ed5f33aa38cc054d075cbe2850960ea3f5
diff --git a/aos/linux_code/init.h b/aos/linux_code/init.h
index ab1aab5..2e57166 100644
--- a/aos/linux_code/init.h
+++ b/aos/linux_code/init.h
@@ -1,6 +1,8 @@
 #ifndef AOS_LINUX_CODE_INIT_H_
 #define AOS_LINUX_CODE_INIT_H_
 
+#include <string>
+
 namespace aos {
 
 // In order to use shared memory, one of the Init* functions must be called in
@@ -28,6 +30,11 @@
 // Sets the current thread's realtime priority.
 void SetCurrentThreadRealtimePriority(int priority);
 
+// 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 &name);
+
 }  // namespace aos
 
 #endif  // AOS_LINUX_CODE_INIT_H_