]> xenbits.xensource.com Git - unikraft/libs/pthread-embedded.git/commitdiff
Initialize pthread-embedded as early as possible
authorSimon Kuenzer <simon.kuenzer@neclab.eu>
Tue, 15 Dec 2020 08:19:12 +0000 (09:19 +0100)
committerSimon Kuenzer <simon.kuenzer@neclab.eu>
Wed, 21 Apr 2021 22:33:04 +0000 (00:33 +0200)
Because other Unikraft libraries may create threads, we
initialize pthread-embedded within the early init class.

Signed-off-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Reviewed-by: Daniel Dinca <dincadaniel97@gmail.com>
pte_osal.c

index cc24495b6671203728e940f433c660820627123c..d23e6b36f4ca9a6ca45fab6b3f6d83118fb61a14 100644 (file)
@@ -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)
 {