The user-mode work queue was not being started

This commit is contained in:
Gregory Nutt
2013-12-31 12:48:11 -06:00
parent bca90d1c28
commit a1f8bd0f58
4 changed files with 20 additions and 24 deletions
+2 -2
View File
@@ -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[])
{
+3 -2
View File
@@ -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 */