mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-03 12:06:52 -04:00
Protect/private some ThreadBase implementation details.
This commit is contained in:
parent
be44c21172
commit
1d0de2240d
1 changed files with 3 additions and 2 deletions
|
@ -32,6 +32,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
static msg_t fn(void* arg) {
|
||||
auto obj = static_cast<ThreadBase*>(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__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue