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 wa

[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;