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

Method Process

src/libcec/implementations/PHCommandHandler.cpp:57–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void* CImageViewOnCheck::Process(void)
58{
59 CCECBusDevice* tv = m_handler->m_processor->GetDevice(CECDEVICE_TV);
60 cec_power_status status(CEC_POWER_STATUS_UNKNOWN);
61 while (status != CEC_POWER_STATUS_ON)
62 {
63 m_event.Wait(TV_ON_CHECK_TIME_MS);
64 if (!IsRunning())
65 return NULL;
66
67 status = tv->GetPowerStatus(m_handler->m_busDevice->GetLogicalAddress());
68
69 if (status != CEC_POWER_STATUS_ON &&
70 status != CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON)
71 {
72 CLockObject lock(m_handler->m_mutex);
73 tv->OnImageViewOnSent(false);
74 m_handler->m_iActiveSourcePending = GetTimeMs();
75 }
76 }
77 return NULL;
78}
79
80CPHCommandHandler::CPHCommandHandler(CCECBusDevice *busDevice,
81 int32_t iTransmitTimeout /* = CEC_DEFAULT_TRANSMIT_TIMEOUT */,

Callers

nothing calls this directly

Calls 5

GetPowerStatusMethod · 0.80
OnImageViewOnSentMethod · 0.80
GetDeviceMethod · 0.45
WaitMethod · 0.45
GetLogicalAddressMethod · 0.45

Tested by

no test coverage detected