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:
parent
84a57f8fa0
commit
96da37dc48
@ -53,7 +53,9 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Configuration ************************************************************/
|
/* Configuration ************************************************************/
|
||||||
|
|
||||||
/* CONFIG_SCHED_WORKQUEUE. Not selectable. Set by the configuration system
|
/* CONFIG_SCHED_WORKQUEUE. Not selectable. Set by the configuration system
|
||||||
* if either CONFIG_SCHED_HPWORK or CONFIG_SCHED_LPWORK are selected.
|
* if either CONFIG_SCHED_HPWORK or CONFIG_SCHED_LPWORK are selected.
|
||||||
* CONFIG_SCHED_HPWORK. Create a dedicated "worker" thread to
|
* CONFIG_SCHED_HPWORK. Create a dedicated "worker" thread to
|
||||||
@ -134,8 +136,6 @@
|
|||||||
# undef CONFIG_LIB_USRWORK
|
# undef CONFIG_LIB_USRWORK
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SCHED_WORKQUEUE) || defined(CONFIG_LIB_USRWORK)
|
|
||||||
|
|
||||||
/* High priority, kernel work queue configuration ***************************/
|
/* High priority, kernel work queue configuration ***************************/
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_HPWORK
|
#ifdef CONFIG_SCHED_HPWORK
|
||||||
@ -580,5 +580,4 @@ void work_notifier_signal(enum work_evtype_e evtype,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
#endif /* CONFIG_SCHED_WORKQUEUE || CONFIG_LIB_USRWORK */
|
|
||||||
#endif /* __INCLUDE_NUTTX_WQUEUE_H */
|
#endif /* __INCLUDE_NUTTX_WQUEUE_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user