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

◆ poll_thread_func()

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

Definition at line 700 of file TabletBackend.cpp.

701{
702 while (!m_stop_requested.load()) {
703 std::vector<std::shared_ptr<TabletDevice>> snapshot;
704
705 {
706 std::lock_guard lock(m_devices_mutex);
707 snapshot.reserve(m_devices.size());
708 for (auto& [path, device] : m_devices) {
709 if (device->active.load() && device->handle)
710 snapshot.push_back(device);
711 }
712 }
713
714 if (snapshot.empty()) {
715 std::this_thread::sleep_for(std::chrono::milliseconds(20));
716 continue;
717 }
718
719 for (auto& device : snapshot) {
721 }
722 }
723}
vk::PhysicalDevice device
Definition VKDevice.cpp:121
std::atomic< bool > m_stop_requested
void poll_device(TabletDevice &device)
std::unordered_map< std::string, std::shared_ptr< TabletDevice > > m_devices

References device, m_devices, m_devices_mutex, 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: