Monitor wake up/sleep events with Receiver

This commit is contained in:
pixl
2020-06-24 00:53:04 -04:00
parent 22455af615
commit 1d001237ba
7 changed files with 55 additions and 28 deletions

View File

@@ -149,7 +149,7 @@ void DeviceMonitor::enumerate()
std::string devnode = udev_device_get_devnode(device);
udev_device_unref(device);
std::thread([this](const std::string name) {
std::thread([this](const std::string& name) {
this->addDevice(name);
}, devnode).detach();
}