summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-12-08 16:23:32 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2000-12-08 16:23:32 +0100
commit6b0658a9775aba758b4f6e2e7ef854126ef1e597 (patch)
tree6117bc6c1c770c91214404eb7f9ebdac71f4ce9d /thread.h
parentc8a1be81af458ba096239461d69245c914070516 (diff)
downloadvdr-6b0658a9775aba758b4f6e2e7ef854126ef1e597.tar.gz
vdr-6b0658a9775aba758b4f6e2e7ef854126ef1e597.tar.bz2
Switched to PES recording
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/thread.h b/thread.h
index c85c51e2..6aaee0b9 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.3 2000/11/14 18:38:11 kls Exp $
+ * $Id: thread.h 1.4 2000/12/03 11:18:37 kls Exp $
*/
#ifndef __THREAD_H
@@ -28,7 +28,7 @@ class cThread {
private:
pthread_t thread;
cMutex Mutex;
- pid_t parentPid, lockingPid;
+ pid_t parentPid, threadPid, lockingPid;
int locked;
bool running;
static bool signalHandlerInstalled;
@@ -39,11 +39,12 @@ private:
protected:
void WakeUp(void);
virtual void Action(void) = 0;
- void Stop(void);
+ void Cancel(int WaitSeconds = 0);
public:
cThread(void);
virtual ~cThread();
bool Start(void);
+ bool Active(void);
};
// cThreadLock can be used to easily set a lock in a thread and make absolutely