| 62 | CCECStandbyProtection::~CCECStandbyProtection(void) {} |
| 63 | |
| 64 | void* CCECStandbyProtection::Process(void) |
| 65 | { |
| 66 | int64_t last = GetTimeMs(); |
| 67 | int64_t next; |
| 68 | while (!IsStopped()) |
| 69 | { |
| 70 | P8PLATFORM::CEvent::Sleep(1000); |
| 71 | |
| 72 | next = GetTimeMs(); |
| 73 | |
| 74 | // reset the connection if the clock changed |
| 75 | if (next < last || next - last > 10000) |
| 76 | { |
| 77 | libcec_parameter param; |
| 78 | param.paramData = NULL; param.paramType = CEC_PARAMETER_TYPE_UNKOWN; |
| 79 | m_processor->GetLib()->Alert(CEC_ALERT_CONNECTION_LOST, param); |
| 80 | break; |
| 81 | } |
| 82 | |
| 83 | last = next; |
| 84 | } |
| 85 | return NULL; |
| 86 | } |
| 87 | |
| 88 | CCECProcessor::CCECProcessor(CLibCEC *libcec) : |
| 89 | m_bInitialised(false), |
nothing calls this directly
no test coverage detected