mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Minor changes to work queue timing logic
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <queue.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/wqueue.h>
|
||||
@@ -148,6 +149,10 @@ static int work_hpthread(int argc, char *argv[])
|
||||
|
||||
int work_hpstart(void)
|
||||
{
|
||||
/* Initialize work queue data structures */
|
||||
|
||||
dq_init(&g_hpwork.q);
|
||||
|
||||
/* Start the high-priority, kernel mode worker thread */
|
||||
|
||||
svdbg("Starting high-priority kernel worker thread\n");
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <queue.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/wqueue.h>
|
||||
@@ -145,6 +146,10 @@ static int work_lpthread(int argc, char *argv[])
|
||||
|
||||
int work_lpstart(void)
|
||||
{
|
||||
/* Initialize work queue data structures */
|
||||
|
||||
dq_init(&g_lpwork.q);
|
||||
|
||||
/* Start the low-priority, kernel mode worker thread(s) */
|
||||
|
||||
svdbg("Starting low-priority kernel worker thread\n");
|
||||
|
||||
Reference in New Issue
Block a user