MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / Process

Method Process

src/libcec/CECProcessor.cpp:64–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62CCECStandbyProtection::~CCECStandbyProtection(void) {}
63
64void* 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
88CCECProcessor::CCECProcessor(CLibCEC *libcec) :
89 m_bInitialised(false),

Callers

nothing calls this directly

Calls 12

GetLibMethod · 0.80
PopMethod · 0.80
InitMethod · 0.80
IsPresentMethod · 0.80
AlertMethod · 0.45
AddLogMethod · 0.45
ClearMethod · 0.45
IsOpenMethod · 0.45
CheckKeypressTimeoutMethod · 0.45
GetConfigurationMethod · 0.45
AtMethod · 0.45

Tested by

no test coverage detected