Fixed setting the locking pid after a timed wait

This commit is contained in:
Klaus Schmidinger 2003-05-18 12:46:39 +02:00
parent 88a4353378
commit 435ee39812
3 changed files with 5 additions and 2 deletions

View File

@ -204,6 +204,7 @@ Andreas Schultz <aschultz@warp10.net>
for suggesting to separate the startup of a plugin into an "early" and a "late" phase for suggesting to separate the startup of a plugin into an "early" and a "late" phase
for changing C++ style comments in libdtv into C style to avoid warnings in gcc 3.x for changing C++ style comments in libdtv into C style to avoid warnings in gcc 3.x
for implementing the TerrestrialDeliverySystemDescriptor in libdtv for implementing the TerrestrialDeliverySystemDescriptor in libdtv
for fixing setting the locking pid after a timed wait
Aaron Holtzman Aaron Holtzman
for writing 'ac3dec' for writing 'ac3dec'

View File

@ -2143,7 +2143,7 @@ Video Disk Recorder Revision History
- Changed C++ style comments in libdtv into C style to avoid warnings in gcc 3.x - Changed C++ style comments in libdtv into C style to avoid warnings in gcc 3.x
(thanks to Andreas Schultz). (thanks to Andreas Schultz).
2003-05-16: Version 1.1.32 2003-05-18: Version 1.1.32
- Removed a faulty parameter initialization in menu.c (thanks to Lauri Tischler for - Removed a faulty parameter initialization in menu.c (thanks to Lauri Tischler for
reporting this one). reporting this one).
@ -2163,3 +2163,4 @@ Video Disk Recorder Revision History
cRecorder to avoid problems with cReceivers that want to receive from PIDs cRecorder to avoid problems with cReceivers that want to receive from PIDs
that are currently not transmitting (thanks to Marcel Wiesweg for reporting that are currently not transmitting (thanks to Marcel Wiesweg for reporting
this one). this one).
- Fixed setting the locking pid after a timed wait (thanks to Andreas Schultz).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: thread.c 1.24 2003/05/03 14:03:32 kls Exp $ * $Id: thread.c 1.25 2003/05/18 12:45:13 kls Exp $
*/ */
#include "thread.h" #include "thread.h"
@ -61,6 +61,7 @@ bool cCondVar::TimedWait(cMutex &Mutex, int TimeoutMs)
if (pthread_cond_timedwait(&cond, &Mutex.mutex, &abstime) == ETIMEDOUT) if (pthread_cond_timedwait(&cond, &Mutex.mutex, &abstime) == ETIMEDOUT)
r = false; r = false;
Mutex.locked = locked; Mutex.locked = locked;
Mutex.lockingPid = getpid();
} }
} }
return r; return r;