Skip to content

Commit

Permalink
shutdown: disable work queues for QuRT
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng committed Apr 19, 2017
1 parent fb00d8d commit 4c5dd7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platforms/common/shutdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
#include <errno.h>
#include <pthread.h>

#if defined(__PX4_NUTTX) && !defined(CONFIG_SCHED_WORKQUEUE)
// minimal NuttX build without work queue support
#if (defined(__PX4_NUTTX) && !defined(CONFIG_SCHED_WORKQUEUE)) || __PX4_QURT
// minimal NuttX/QuRT build without work queue support

int px4_register_shutdown_hook(shutdown_hook_t hook)
{
Expand Down Expand Up @@ -196,4 +196,4 @@ int px4_shutdown_request(bool reboot, bool to_bootloader)
}


#endif /* if defined(__PX4_NUTTX) && !defined(CONFIG_SCHED_WORKQUEUE) */
#endif /* (defined(__PX4_NUTTX) && !defined(CONFIG_SCHED_WORKQUEUE)) || __PX4_QURT */

0 comments on commit 4c5dd7d

Please sign in to comment.