| 73 | } |
| 74 | |
| 75 | void DeviceManagerBase::insertDevice(std::shared_ptr<DeviceBase> device) |
| 76 | { |
| 77 | DeviceManager::insertDevice(std::static_pointer_cast<Device>(device)); |
| 78 | std::unique_lock<std::mutex> device_lock(device->refDeviceMutex()); |
| 79 | learnSysfsPath(device->getSysPath(), device->getID()); |
| 80 | } |
| 81 | |
| 82 | std::shared_ptr<Device> DeviceManagerBase::removeDevice(const std::string& syspath) |
| 83 | { |