[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT/PTHREAD-EMBEDDED PATCH 1/1] Set highest priority to pthread constructor
Hi Vlad, I will replace 101 with UK_CTOR_PRIO_PTHREAD_EMBEDDED on upstreaming. Thanks, Costin Reviewed-by: Costin Lupu <costin.lupu@xxxxxxxxx> On 10/31/19 12:37 AM, Vlad-Andrei BĂDOIU (78692) wrote: > Other libraries might use the default constructor attribute and expect > pthreads > to be initialised. We set the highest priority(101) to the pthread > constructor. > > Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx> > --- > pte_osal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/pte_osal.c b/pte_osal.c > index 23dcd01..df24bed 100644 > --- a/pte_osal.c > +++ b/pte_osal.c > @@ -58,7 +58,7 @@ typedef struct { > * > ***************************************************************************/ > > -int __constructor pthread_constructor(void) > +int __attribute__((constructor(101))) pthread_constructor(void) > { > uk_pr_debug("pthread-embedded constructor\n"); > return pthread_init(); > _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |