mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
wqueue: change single queue to double queue to improve speed
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -127,7 +127,7 @@ static void work_process(FAR struct usr_wqueue_s *wqueue)
|
||||
{
|
||||
/* Remove the ready-to-execute work from the list */
|
||||
|
||||
sq_remfirst(&wqueue->q);
|
||||
dq_remfirst(&wqueue->q);
|
||||
|
||||
/* Extract the work description from the entry (in case the work
|
||||
* instance by the re-used after it has been de-queued).
|
||||
@@ -288,7 +288,7 @@ int work_usrstart(void)
|
||||
|
||||
/* Initialize the work queue */
|
||||
|
||||
sq_init(&g_usrwork.q);
|
||||
dq_init(&g_usrwork.q);
|
||||
|
||||
#ifdef CONFIG_BUILD_PROTECTED
|
||||
|
||||
|
||||
Reference in New Issue
Block a user