Re: [vdr] [PATCH] Add thread safety to cRingBufferLinear

2023-02-06 Thread Patrick Lerda
On 03/02/2023 10:36, Klaus Schmidinger wrote: On 02.02.23 23:47, patrick9...@free.fr wrote: On 02/02/2023 23:27, Klaus Schmidinger wrote: On 02.02.23 23:16, Patrick Lerda wrote: Beside preventing crashes with vdr-2.6.3 this is required to get vdr to work properly with the gcc thread

Re: [vdr] [PATCH] Add thread safety to cRingBufferLinear

2023-02-06 Thread Klaus Schmidinger
On 06.02.23 21:11, Patrick Lerda wrote: On 03/02/2023 10:36, Klaus Schmidinger wrote: On 02.02.23 23:47, patrick9...@free.fr wrote: On 02/02/2023 23:27, Klaus Schmidinger wrote: On 02.02.23 23:16, Patrick Lerda wrote: Beside preventing crashes with vdr-2.6.3 this is required to get vdr to

Re: [vdr] [PATCH] Add thread safety to cRingBufferLinear

2023-02-06 Thread Udo Richter
On 06.02.23 23:29, Klaus Schmidinger wrote: It is supposed to be shared by *exactly* two threads. One only writing 'head', the other only writing 'tail'. Two-ended buffers are pretty good when used correctly, but nowadays they have a small chance of triggering memory ordering issues, where it

Re: [vdr] [PATCH] Add thread safety to cRingBufferLinear

2023-02-06 Thread Marko Mäkelä
Tue, Feb 07, 2023 at 12:54:16AM +0100, Udo Richter wrote: Two-ended buffers are pretty good when used correctly, but nowadays they have a small chance of triggering memory ordering issues, where it is possible that written data to the buffer is still stuck in a distant cache, while the updated