include/nuttx/wqueue.h: Allow definitions even if work queues are not enabled. This solves build failures when work queues are not enabled.

This commit is contained in:
Gregory Nutt 2019-06-03 13:13:17 -06:00
parent 84a57f8fa0
commit 96da37dc48

View File

@ -53,7 +53,9 @@
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Configuration ************************************************************/
/* CONFIG_SCHED_WORKQUEUE. Not selectable. Set by the configuration system
* if either CONFIG_SCHED_HPWORK or CONFIG_SCHED_LPWORK are selected.
* CONFIG_SCHED_HPWORK. Create a dedicated "worker" thread to
@ -134,8 +136,6 @@
# undef CONFIG_LIB_USRWORK
#endif
#if defined(CONFIG_SCHED_WORKQUEUE) || defined(CONFIG_LIB_USRWORK)
/* High priority, kernel work queue configuration ***************************/
#ifdef CONFIG_SCHED_HPWORK
@ -580,5 +580,4 @@ void work_notifier_signal(enum work_evtype_e evtype,
#endif
#endif /* __ASSEMBLY__ */
#endif /* CONFIG_SCHED_WORKQUEUE || CONFIG_LIB_USRWORK */
#endif /* __INCLUDE_NUTTX_WQUEUE_H */