Re: [OE-core] [PATCH 1/2] sstate: add a LockedSet class to be used on the mirror thread pool

2022-04-29 Thread Jose Quaresma
Jose Quaresma via lists.openembedded.org escreveu no dia sexta, 29/04/2022 à(s) 14:33: > > > Richard Purdie escreveu no dia > quinta, 28/04/2022 à(s) 13:30: > >> On Tue, 2022-04-19 at 10:46 +0100, Jose Quaresma wrote: >> > The python set() is not thread safe and we use it on the ThreadedPool. >>

Re: [OE-core] [PATCH 1/2] sstate: add a LockedSet class to be used on the mirror thread pool

2022-04-29 Thread Jose Quaresma
Richard Purdie escreveu no dia quinta, 28/04/2022 à(s) 13:30: > On Tue, 2022-04-19 at 10:46 +0100, Jose Quaresma wrote: > > The python set() is not thread safe and we use it on the ThreadedPool. > > With this LockedSet python class we can call the 'add' and 'remove' > > safely inside the Threaded

Re: [OE-core] [PATCH 1/2] sstate: add a LockedSet class to be used on the mirror thread pool

2022-04-28 Thread Richard Purdie
On Tue, 2022-04-19 at 10:46 +0100, Jose Quaresma wrote: > The python set() is not thread safe and we use it on the ThreadedPool. > With this LockedSet python class we can call the 'add' and 'remove' > safely inside the ThreadedPool. > > This piece of code is taken from the stackoverflow > https://

[OE-core] [PATCH 1/2] sstate: add a LockedSet class to be used on the mirror thread pool

2022-04-19 Thread Jose Quaresma
The python set() is not thread safe and we use it on the ThreadedPool. With this LockedSet python class we can call the 'add' and 'remove' safely inside the ThreadedPool. This piece of code is taken from the stackoverflow https://stackoverflow.com/questions/13610654/how-to-make-built-in-containers