mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 04:03:33 +08:00
Work queue: Code style fixes
This commit is contained in:
@@ -121,11 +121,11 @@ static void hrt_work_process()
|
|||||||
|
|
||||||
int rv;
|
int rv;
|
||||||
// set the threads name
|
// set the threads name
|
||||||
#ifdef __PX4_DARWIN
|
#ifdef __PX4_DARWIN
|
||||||
rv = pthread_setname_np("HRT");
|
rv = pthread_setname_np("HRT");
|
||||||
#else
|
#else
|
||||||
rv = pthread_setname_np(pthread_self(), "HRT");
|
rv = pthread_setname_np(pthread_self(), "HRT");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Then process queued work. We need to keep interrupts disabled while
|
/* Then process queued work. We need to keep interrupts disabled while
|
||||||
* we process items in the work list.
|
* we process items in the work list.
|
||||||
|
|||||||
@@ -308,11 +308,11 @@ int work_usrthread(int argc, char *argv[])
|
|||||||
|
|
||||||
int rv;
|
int rv;
|
||||||
// set the threads name
|
// set the threads name
|
||||||
#ifdef __PX4_DARWIN
|
#ifdef __PX4_DARWIN
|
||||||
rv = pthread_setname_np("USR");
|
rv = pthread_setname_np("USR");
|
||||||
#else
|
#else
|
||||||
rv = pthread_setname_np(pthread_self(), "USR");
|
rv = pthread_setname_np(pthread_self(), "USR");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
/* Then process queued work. We need to keep interrupts disabled while
|
/* Then process queued work. We need to keep interrupts disabled while
|
||||||
|
|||||||
Reference in New Issue
Block a user