mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Add support for multiple low-priority worker threads
This commit is contained in:
+10
-1
@@ -57,6 +57,15 @@
|
||||
* Public Type Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* This structure defines the state of one user-modework queue. */
|
||||
|
||||
struct usr_wqueue_s
|
||||
{
|
||||
uint32_t delay; /* Delay between polling cycles (ticks) */
|
||||
struct dq_queue_s q; /* The queue of pending work */
|
||||
pid_t pid; /* The task ID of the worker thread(s) */
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
@@ -64,7 +73,7 @@
|
||||
#if defined(CONFIG_SCHED_USRWORK) && !defined(__KERNEL__)
|
||||
/* The state of the user mode work queue */
|
||||
|
||||
extern struct wqueue_s g_usrwork;
|
||||
extern struct usr_wqueue_s g_usrwork;
|
||||
|
||||
/* This semaphore/mutex supports exclusive access to the user-mode work queue */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user