[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [UNIKRAFT/LIBPTHREAD-EMBEDDED PATCH 2/3] Initialize pthread-embedded as early as possible



Needs rebasing apart from that looks good.
Reviewed-by: Daniel Dinca <dincadaniel97@xxxxxxxxx>

În mar., 15 dec. 2020 la 10:19, Simon Kuenzer <simon.kuenzer@xxxxxxxxx> a scris:
Because other Unikraft libraries may create threads, we
initialize pthread-embedded within the early init class.

Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
---
 pte_osal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pte_osal.c b/pte_osal.c
index 6b4ebd7..d475e2c 100644
--- a/pte_osal.c
+++ b/pte_osal.c
@@ -74,7 +74,7 @@ static int pthread_initcall(void)
                initialized = true;
        return result;
 }
-uk_lib_initcall(pthread_initcall);
+uk_early_initcall_prio(pthread_initcall, UK_PRIO_EARLIEST);

 pte_osResult pte_osInit(void)
 {
--
2.20.1


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.