From: Simon Kuenzer Date: Tue, 15 Dec 2020 08:19:12 +0000 (+0100) Subject: Initialize pthread-embedded as early as possible X-Git-Tag: RELEASE-0.6~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=bf7c1f636c872d4e452bd9db127df20e2a077ab2;p=unikraft%2Flibs%2Fpthread-embedded.git Initialize pthread-embedded as early as possible Because other Unikraft libraries may create threads, we initialize pthread-embedded within the early init class. Signed-off-by: Simon Kuenzer Reviewed-by: Daniel Dinca --- diff --git a/pte_osal.c b/pte_osal.c index cc24495..d23e6b3 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) {