diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-28 11:34:35 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-28 11:34:35 +0100 |
commit | a919e02de681539484316cea8ce1b3c9e088b682 (patch) | |
tree | f54c89dba65fb1f41ba9fe4cd259924258b32801 /thread.c | |
parent | e101bc5658936ad3aae9081edf3444d650b66c49 (diff) | |
download | vdr-a919e02de681539484316cea8ce1b3c9e088b682.tar.gz vdr-a919e02de681539484316cea8ce1b3c9e088b682.tar.bz2 |
Fixed some typos
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: thread.c 1.51 2006/01/08 16:03:56 kls Exp $ + * $Id: thread.c 1.52 2006/01/28 11:34:35 kls Exp $ */ #include "thread.h" @@ -105,7 +105,7 @@ void cCondVar::Wait(cMutex &Mutex) if (Mutex.locked) { int locked = Mutex.locked; Mutex.locked = 0; // have to clear the locked count here, as pthread_cond_wait - // does an implizit unlock of the mutex + // does an implicit unlock of the mutex pthread_cond_wait(&cond, &Mutex.mutex); Mutex.locked = locked; } @@ -113,14 +113,14 @@ void cCondVar::Wait(cMutex &Mutex) bool cCondVar::TimedWait(cMutex &Mutex, int TimeoutMs) { - bool r = true; // true = condition signaled false = timeout + bool r = true; // true = condition signaled, false = timeout if (Mutex.locked) { struct timespec abstime; if (GetAbsTime(&abstime, TimeoutMs)) { int locked = Mutex.locked; Mutex.locked = 0; // have to clear the locked count here, as pthread_cond_timedwait - // does an implizit unlock of the mutex. + // does an implicit unlock of the mutex. if (pthread_cond_timedwait(&cond, &Mutex.mutex, &abstime) == ETIMEDOUT) r = false; Mutex.locked = locked; |