From c0076b53fb709484039bb1131711bcd08b1c4c80 Mon Sep 17 00:00:00 2001 From: sunhaoyi Date: Thu, 23 May 2024 16:33:00 +0800 Subject: [PATCH] lib/uksched: Improve traversal speed of the runq_list Signed-off-by: sunhaoyi --- lib/uksched/include/uk/thread.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/uksched/include/uk/thread.h b/lib/uksched/include/uk/thread.h index f72183f2..e329ed32 100644 --- a/lib/uksched/include/uk/thread.h +++ b/lib/uksched/include/uk/thread.h @@ -56,18 +56,18 @@ typedef void (*uk_thread_fn1_t)(void *) __noreturn; typedef void (*uk_thread_fn2_t)(void *, void *) __noreturn; struct uk_thread { - struct ukarch_ctx ctx; /**< Architecture context */ - struct ukarch_ectx *ectx; /**< Extended context (FPU, VPU, ...) */ - uintptr_t tlsp; /**< Current active TLS pointer */ - __uptr uktlsp; /**< Unikraft TLS pointer */ - __uptr auxsp; /**< Unikraft Auxiliary Stack Pointer */ - #if defined(CONFIG_LIBUKSCHED_RUNQ_TAILQ) UK_TAILQ_ENTRY(struct uk_thread) queue; #elif defined(CONFIG_LIBUKSCHED_RUNQ_LIST) struct uk_list_head queue; #endif + struct ukarch_ctx ctx; /**< Architecture context */ + struct ukarch_ectx *ectx; /**< Extended context (FPU, VPU, ...) */ + uintptr_t tlsp; /**< Current active TLS pointer */ + __uptr uktlsp; /**< Unikraft TLS pointer */ + __uptr auxsp; /**< Unikraft Auxiliary Stack Pointer */ + uint32_t flags; struct timer timer; struct uk_sched *sched; -- Gitee