KeepaliveThread Class Reference

#include <videodevice.h>

Inherits Thread.

Collaboration diagram for KeepaliveThread:

Collaboration graph
[legend]

Public Member Functions

 KeepaliveThread (VideoDevice *device)
 ~KeepaliveThread ()
void run ()
int reset_keepalive ()
int get_failed ()
int start_keepalive ()
int stop ()

Data Fields

Timer timer
int still_alive
int failed
int interrupted
VideoDevicedevice
Mutexstartup_lock
int capturing

Detailed Description

Definition at line 46 of file videodevice.h.


Constructor & Destructor Documentation

KeepaliveThread::KeepaliveThread ( VideoDevice device  ) 

Definition at line 36 of file videodevice.C.

References capturing, failed, interrupted, Thread::set_synchronous(), startup_lock, and still_alive.

Here is the call graph for this function:

KeepaliveThread::~KeepaliveThread (  ) 

Definition at line 48 of file videodevice.C.

References startup_lock.


Member Function Documentation

void KeepaliveThread::run (  )  [virtual]

Implements Thread.

Definition at line 61 of file videodevice.C.

References capturing, Timer::delay(), failed, interrupted, KEEPALIVE_DELAY, startup_lock, still_alive, timer, and Mutex::unlock().

Here is the call graph for this function:

int KeepaliveThread::reset_keepalive (  ) 

Definition at line 82 of file videodevice.C.

References still_alive.

Referenced by VideoDevice::read_buffer().

int KeepaliveThread::get_failed (  ) 

Definition at line 87 of file videodevice.C.

References failed.

Referenced by VideoDevice::get_failed().

int KeepaliveThread::start_keepalive (  ) 

Definition at line 53 of file videodevice.C.

References Mutex::lock(), Thread::start(), startup_lock, and Mutex::unlock().

Referenced by VideoDevice::open_input().

Here is the call graph for this function:

int KeepaliveThread::stop (  ) 

Definition at line 92 of file videodevice.C.

References Thread::end(), interrupted, and Thread::join().

Referenced by VideoDevice::close_all().

Here is the call graph for this function:


Field Documentation

Definition at line 58 of file videodevice.h.

Referenced by run().

Definition at line 59 of file videodevice.h.

Referenced by KeepaliveThread(), reset_keepalive(), and run().

Definition at line 60 of file videodevice.h.

Referenced by get_failed(), KeepaliveThread(), and run().

Definition at line 61 of file videodevice.h.

Referenced by KeepaliveThread(), run(), and stop().

Definition at line 62 of file videodevice.h.

Definition at line 63 of file videodevice.h.

Referenced by KeepaliveThread(), run(), start_keepalive(), and ~KeepaliveThread().

Definition at line 64 of file videodevice.h.

Referenced by KeepaliveThread(), VideoDevice::read_buffer(), and run().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:28:56 2008 for Cinelerra by  doxygen 1.5.5