mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 09:00:35 +08:00
HRT thread: Set thread name
This commit is contained in:
@@ -119,6 +119,14 @@ static void hrt_work_process()
|
||||
uint32_t remaining;
|
||||
uint32_t next;
|
||||
|
||||
int rv;
|
||||
// set the threads name
|
||||
#ifdef __PX4_DARWIN
|
||||
rv = pthread_setname_np("HRT");
|
||||
#else
|
||||
rv = pthread_setname_np(pthread_self(), "HRT");
|
||||
#endif
|
||||
|
||||
/* Then process queued work. We need to keep interrupts disabled while
|
||||
* we process items in the work list.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user