Re: [vdr] [PATCH] Use cThread::mutex with absolute cCondVar::TimedWait()

2023-02-18 Thread Marko Mäkelä
Wed, Feb 15, 2023 at 06:01:46PM +0100, Klaus Schmidinger wrote: On 22.01.23 13:52, Marko Mäkelä wrote: Hi, I would propose the following patch, or some equivalent interface that would allow cThread::mutex to be used with some cCondVar in derived classes: diff --git a/thread.h b/thread.h

Re: [vdr] [PATCH] Use cThread::mutex with absolute cCondVar::TimedWait()

2023-02-15 Thread Klaus Schmidinger
On 22.01.23 13:52, Marko Mäkelä wrote: Hi, I would propose the following patch, or some equivalent interface that would allow cThread::mutex to be used with some cCondVar in derived classes: diff --git a/thread.h b/thread.h index 16c4bd75..cd1d98ab 100644 --- a/thread.h +++ b/thread.h @@

Re: [vdr] [PATCH] Use cThread::mutex with absolute cCondVar::TimedWait()

2023-01-22 Thread Marko Mäkelä
Sun, Jan 22, 2023 at 02:52:03PM +0200, Marko Mäkelä wrote: This code illustrates another limitation: There is no way to pass an absolute time to cCondVar::TimedWait(). On each call, a relative wake-up time (milliseconds from the current time) will be converted into an absolute time. If there

[vdr] [PATCH] Use cThread::mutex with absolute cCondVar::TimedWait()

2023-01-22 Thread Marko Mäkelä
Hi, I would propose the following patch, or some equivalent interface that would allow cThread::mutex to be used with some cCondVar in derived classes: diff --git a/thread.h b/thread.h index 16c4bd75..cd1d98ab 100644 --- a/thread.h +++ b/thread.h @@ -83,7 +83,9 @@ private: bool running;