Re: [RFC] eal: per-thread constructors/destructors

2022-12-21 Thread Mattias Rönnblom
On 2022-12-21 17:12, David Marchand wrote: > On Sun, Dec 18, 2022 at 11:01 AM Morten Brørup > wrote: >> >> This RFC introduces per-thread constructors/destructors: >> * Per-thread constructors are functions called as the first thing from newly >> created threads. This can be used to initialize v

Re: [RFC] eal: per-thread constructors/destructors

2022-12-21 Thread Tyler Retzlaff
On Wed, Dec 21, 2022 at 05:12:54PM +0100, David Marchand wrote: > On Sun, Dec 18, 2022 at 11:01 AM Morten Brørup > wrote: > > > > This RFC introduces per-thread constructors/destructors: > > * Per-thread constructors are functions called as the first thing from > > newly created threads. This ca

Re: [RFC] eal: per-thread constructors/destructors

2022-12-21 Thread David Marchand
On Sun, Dec 18, 2022 at 11:01 AM Morten Brørup wrote: > > This RFC introduces per-thread constructors/destructors: > * Per-thread constructors are functions called as the first thing from newly > created threads. This can be used to initialize variables in thread-local > storage, variables depe

Re: [RFC] eal: per-thread constructors/destructors

2022-12-19 Thread Mattias Rönnblom
On 2022-12-18 11:01, Morten Brørup wrote: > This RFC introduces per-thread constructors/destructors: > * Per-thread constructors are functions called as the first thing from newly > created threads. This can be used to initialize variables in thread-local > storage, variables depending on the (ti

[RFC] eal: per-thread constructors/destructors

2022-12-18 Thread Morten Brørup
This RFC introduces per-thread constructors/destructors: * Per-thread constructors are functions called as the first thing from newly created threads. This can be used to initialize variables in thread-local storage, variables depending on the (tid_t) thread id, and to call setup functions that