diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-01-14 14:08:47 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-01-14 14:08:47 +0100 |
commit | 0ad4b2a713d3188e54c6833fc5860109725fca0a (patch) | |
tree | 60f16a5f7f5b161919a72178e0ab4136ffbf8e2f /thread.h | |
parent | 0d596d04787086c607eedb1de3dd1d08a1db983e (diff) | |
download | vdr-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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. |