Work queue: Code style fixes

This commit is contained in:
Lorenz Meier 2015-12-01 12:44:22 +01:00
parent 069ebebb27
commit 1b65bba083
2 changed files with 6 additions and 6 deletions

View File

@ -121,11 +121,11 @@ static void hrt_work_process()
int rv;
// set the threads name
#ifdef __PX4_DARWIN
#ifdef __PX4_DARWIN
rv = pthread_setname_np("HRT");
#else
#else
rv = pthread_setname_np(pthread_self(), "HRT");
#endif
#endif
/* Then process queued work. We need to keep interrupts disabled while
* we process items in the work list.

View File

@ -308,11 +308,11 @@ int work_usrthread(int argc, char *argv[])
int rv;
// set the threads name
#ifdef __PX4_DARWIN
#ifdef __PX4_DARWIN
rv = pthread_setname_np("USR");
#else
#else
rv = pthread_setname_np(pthread_self(), "USR");
#endif
#endif
for (;;) {
/* Then process queued work. We need to keep interrupts disabled while