2020-01-11, 09:21
That's entirely bad solution.
run: sudo udevadm monitor
on a terminal next to kodi
on the terminal and see if you get events all the time. The only reason:
Can eat CPU is that WaitForUpdate does not block. So find out, what happens in this method.
run: sudo udevadm monitor
on a terminal next to kodi
on the terminal and see if you get events all the time. The only reason:
Code:
void CPeripheralBusUSB::Process(void)
{
bool bUpdated(false);
ScanForDevices();
while (!m_bStop)
{
bUpdated = WaitForUpdate();
if (bUpdated && !m_bStop)
ScanForDevices();
}
}
Can eat CPU is that WaitForUpdate does not block. So find out, what happens in this method.