summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-09-24 12:54:47 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-09-24 12:54:47 +0200
commit2d68b323c74f3ba2d03d843132ebcec1d712b982 (patch)
treee96d6e46b37c085fdab1245f7cb49bf14ba837e2 /thread.h
parent0b8cee6f2ae4a3709cf7b5d95c716060d758a1ea (diff)
downloadvdr-2d68b323c74f3ba2d03d843132ebcec1d712b982.tar.gz
vdr-2d68b323c74f3ba2d03d843132ebcec1d712b982.tar.bz2
The function cThread::Cancel() now only sets 'running' to false and does not actually kill the thread if the special value -1 is given
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 341e87d0..6211e2c1 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.36 2006/01/08 11:40:23 kls Exp $
+ * $Id: thread.h 1.37 2006/09/24 10:10:37 kls Exp $
*/
#ifndef __THREAD_H
@@ -103,6 +103,8 @@ protected:
///< the Action() loop can finish in an orderly fashion and then waiting
///< up to WaitSeconds seconds for the thread to actually end. If the
///< thread doesn't end by itself, it is killed.
+ ///< If WaitSeconds is -1, only 'running' is set to false and Cancel()
+ ///< returns immediately, without killing the thread.
public:
cThread(const char *Description = NULL);
///< Creates a new thread.