summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-05-18 12:46:39 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-05-18 12:46:39 +0200
commit435ee3981203577709ffd41057f0e120615871a1 (patch)
treee1c9bef48f8b397e0fb92f11f8fb1de9d94c5c46 /thread.c
parent88a435337805ad282544e15832b2b9e81155200c (diff)
downloadvdr-435ee3981203577709ffd41057f0e120615871a1.tar.gz
vdr-435ee3981203577709ffd41057f0e120615871a1.tar.bz2
Fixed setting the locking pid after a timed wait
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 07c8f79a..5fbcfd88 100644
--- a/thread.c
+++ b/thread.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* 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"
@@ -61,6 +61,7 @@ bool cCondVar::TimedWait(cMutex &Mutex, int TimeoutMs)
if (pthread_cond_timedwait(&cond, &Mutex.mutex, &abstime) == ETIMEDOUT)
r = false;
Mutex.locked = locked;
+ Mutex.lockingPid = getpid();
}
}
return r;