mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
The user-mode work queue was not being started
This commit is contained in:
@@ -231,7 +231,7 @@ static void work_process(FAR struct wqueue_s *wqueue)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_SCHED_HPWORK
|
||||
#if defined(CONFIG_SCHED_HPWORK)
|
||||
|
||||
int work_hpthread(int argc, char *argv[])
|
||||
{
|
||||
@@ -290,7 +290,7 @@ int work_lpthread(int argc, char *argv[])
|
||||
#endif /* CONFIG_SCHED_LPWORK */
|
||||
#endif /* CONFIG_SCHED_HPWORK */
|
||||
|
||||
#ifdef CONFIG_SCHED_USRWORK
|
||||
#if defined(CONFIG_SCHED_USRWORK) && !defined(__KERNEL__)
|
||||
|
||||
int work_usrthread(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -46,7 +46,8 @@
|
||||
|
||||
#include <nuttx/wqueue.h>
|
||||
|
||||
#if defined(CONFIG_SCHED_WORKQUEUE) && defined(CONFIG_SCHED_USRWORK)
|
||||
#if defined(CONFIG_NUTTX_KERNEL) && !defined(__KERNEL__) && \
|
||||
defined(CONFIG_SCHED_WORKQUEUE) && defined(CONFIG_SCHED_USRWORK)
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@@ -111,4 +112,4 @@ int work_usrstart(void)
|
||||
return g_usrwork[USRWORK].pid;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_SCHED_WORKQUEUE && CONFIG_SCHED_USRWORK */
|
||||
#endif /* CONFIG_NUTTX_KERNEL && !__KERNEL__ CONFIG_SCHED_WORKQUEUE && CONFIG_SCHED_USRWORK */
|
||||
|
||||
Reference in New Issue
Block a user