Skip to content

Commit 12266c0

Browse files
committed
[imp] give VModuleThread modules a default thread name
1 parent 97b0255 commit 12266c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Framework/Module/vmodule.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ template<int WASize>
9292
msg_t fwk::VModuleThread<WASize>::start() {
9393
this->Start(prio);
9494

95+
// Name thread as module if it not yet has a name
96+
chSysLock();
97+
if (!this->thread_ref->p_name)
98+
this->thread_ref->p_name = "unamed_module";
99+
chSysUnlock();
100+
95101
return RDY_OK;
96102
}
97103

0 commit comments

Comments
 (0)