DevMgr:newDevSpecInd: fix posting and async pattern conformance

This commit is contained in:
2025-09-15 14:20:08 -04:00
parent b768739b96
commit 674d74cfb9
2 changed files with 105 additions and 62 deletions
@@ -38,10 +38,10 @@ public:
typedef std::function<void(
bool success, std::shared_ptr<Device> device,
std::shared_ptr<DeviceAttachmentSpec> deviceSpec)>
deviceAttachmentSpecIndCbFn;
newDeviceAttachmentSpecIndCbFn;
void newDeviceAttachmentSpecInd(
std::shared_ptr<DeviceAttachmentSpec> spec,
deviceAttachmentSpecIndCbFn callback);
newDeviceAttachmentSpecIndCbFn callback);
private:
DeviceManager() = default;
@@ -58,6 +58,9 @@ public:
static std::vector<std::shared_ptr<DeviceAttachmentSpec>>
deviceAttachmentSpecs;
static std::vector<std::shared_ptr<Device>> devices;
private:
class NewDeviceAttachmentSpecInd;
};
} // namespace device