Decoupling work queue data structures. This is part of the preparation to support multiple low-priority worker threads

This commit is contained in:
Gregory Nutt
2014-10-10 08:35:58 -06:00
parent 6220256a09
commit 1afc9773ac
16 changed files with 660 additions and 132 deletions
+5 -1
View File
@@ -48,6 +48,10 @@
* Pre-processor Definitions
****************************************************************************/
/* The state of the user mode work queue. */
extern struct wqueue_s g_usrwork;
/****************************************************************************
* Private Type Declarations
****************************************************************************/
@@ -93,7 +97,7 @@ int work_usrthread(int argc, char *argv[])
* we process items in the work list.
*/
work_process(&g_work[USRWORK]);
work_process(&g_usrwork);
}
return OK; /* To keep some compilers happy */