#include <videodevice.h>
Inherits Thread.

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 |
| VideoDevice * | device |
| Mutex * | startup_lock |
| int | capturing |
Definition at line 46 of file videodevice.h.
| KeepaliveThread::KeepaliveThread | ( | VideoDevice * | device | ) |
Definition at line 36 of file videodevice.C.
References capturing, failed, interrupted, Thread::set_synchronous(), startup_lock, and still_alive.

| KeepaliveThread::~KeepaliveThread | ( | ) |
| 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().

| 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().

| int KeepaliveThread::stop | ( | ) |
Definition at line 92 of file videodevice.C.
References Thread::end(), interrupted, and Thread::join().
Referenced by VideoDevice::close_all().

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 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().
1.5.5