summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-01-14 14:08:47 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-01-14 14:08:47 +0100
commit0ad4b2a713d3188e54c6833fc5860109725fca0a (patch)
tree60f16a5f7f5b161919a72178e0ab4136ffbf8e2f /thread.h
parent0d596d04787086c607eedb1de3dd1d08a1db983e (diff)
downloadvdr-0ad4b2a713d3188e54c6833fc5860109725fca0a.tar.gz
vdr-0ad4b2a713d3188e54c6833fc5860109725fca0a.tar.bz2
Made cCondWait::SleepMs() sleep at least 3ms to avoid a possible busy wait
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/thread.h b/thread.h
index 6e096a64..2c0ebcba 100644
--- a/thread.h
+++ b/thread.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: thread.h 1.26 2004/12/19 10:43:10 kls Exp $
+ * $Id: thread.h 1.27 2005/01/14 14:02:14 kls Exp $
*/
#ifndef __THREAD_H
@@ -26,6 +26,8 @@ public:
///< Creates a cCondWait object and uses it to sleep for TimeoutMs
///< milliseconds, immediately giving up the calling thread's time
///< slice and thus avoiding a "busy wait".
+ ///< In order to avoid a possible busy wait, TimeoutMs will be automatically
+ ///< limited to values >2.
bool Wait(int TimeoutMs = 0);
///< Waits at most TimeoutMs milliseconds for a call to Signal(), or
///< forever if TimeoutMs is 0.