MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ poll_thread_func()

void MayaFlux::Core::HIDBackend::poll_thread_func ( )
private

Definition at line 394 of file HIDBackend.cpp.

395{
396 while (!m_stop_requested.load()) {
397 {
398 std::lock_guard lock(m_devices_mutex);
399 for (auto& [id, state] : m_open_devices) {
400 if (state->active.load() && state->handle) {
401 poll_device(id, *state);
402 }
403 }
404 }
405
406 std::this_thread::sleep_for(std::chrono::milliseconds(1));
407 }
408}
std::atomic< bool > m_stop_requested
void poll_device(uint32_t device_id, HIDDeviceState &state)
std::unordered_map< uint32_t, std::shared_ptr< HIDDeviceState > > m_open_devices

References m_devices_mutex, m_open_devices, m_stop_requested, and poll_device().

Referenced by start().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: