| 73 | } |
| 74 | |
| 75 | bool CRPiCECAdapterMessageQueueEntry::MessageReceived(cec_opcode opcode, cec_logical_address initiator, cec_logical_address destination, uint32_t response) |
| 76 | { |
| 77 | if ((m_command.opcode_set && m_command.opcode == opcode && |
| 78 | m_command.initiator == initiator && |
| 79 | m_command.destination == destination) |
| 80 | || |
| 81 | (!m_command.opcode_set && |
| 82 | m_command.destination == destination)) |
| 83 | { |
| 84 | CLockObject lock(m_mutex); |
| 85 | m_retval = response; |
| 86 | m_bSucceeded = true; |
| 87 | m_condition.Signal(); |
| 88 | return true; |
| 89 | } |
| 90 | |
| 91 | return false; |
| 92 | } |
| 93 | |
| 94 | bool CRPiCECAdapterMessageQueueEntry::Wait(uint32_t iTimeout) |
| 95 | { |
no test coverage detected