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

2023-02-19 Thread Patrick Lerda
On 15/02/2023 16:51, Klaus Schmidinger wrote: On 09.02.23 23:31, Patrick Lerda wrote: ... This is really related to the C++ thread safety model, the patch below fixes the main cRingBufferLinear issue: diff --git a/ringbuffer.h b/ringbuffer.h index 746fc51..a3fa499 100644 --- a/ringbuffer.h

Re: [vdr] [PATCH] Fix cThread related race conditions

2023-02-19 Thread Patrick Lerda
On 18/02/2023 11:10, Marko Mäkelä wrote: Wed, Feb 15, 2023 at 05:17:55PM +0100, Klaus Schmidinger wrote: On 02.02.23 21:56, Patrick Lerda wrote: ... diff --git a/thread.c b/thread.c index 93eb8c0..21be7a4 100644 --- a/thread.c +++ b/thread.c @@ -312,13 +312,16 @@ bool cThread::Start(void)

Re: [vdr] [PATCH] Fix cThread related race conditions

2023-02-19 Thread Patrick Lerda
On 15/02/2023 17:17, Klaus Schmidinger wrote: On 02.02.23 21:56, Patrick Lerda wrote: ... diff --git a/thread.c b/thread.c index 93eb8c0..21be7a4 100644 --- a/thread.c +++ b/thread.c @@ -312,13 +312,16 @@ bool cThread::Start(void) cCondWait::SleepMs(THREAD_STOP_SLEEP);