From 1d0de2240d9fe7e82bd0a810239f4a1b262e2de1 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Fri, 15 Jan 2016 20:25:29 -0800 Subject: [PATCH] Protect/private some ThreadBase implementation details. --- firmware/baseband/thread_base.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/firmware/baseband/thread_base.hpp b/firmware/baseband/thread_base.hpp index 3db73d146..9b5e8a996 100644 --- a/firmware/baseband/thread_base.hpp +++ b/firmware/baseband/thread_base.hpp @@ -32,6 +32,7 @@ public: { } +protected: static msg_t fn(void* arg) { auto obj = static_cast(arg); chRegSetThreadName(obj->name); @@ -40,10 +41,10 @@ public: return 0; } - virtual void run() = 0; - private: const char* const name; + + virtual void run() = 0; }; #endif/*__THREAD_BASE_H__*/