[idd] transport: configure active instances

This commit is contained in:
Geoffrey McRae
2026-08-12 23:26:26 +10:00
parent 4768396180
commit c601468871
12 changed files with 621 additions and 53 deletions

View File

@@ -48,7 +48,8 @@ static bool TranslateFrameScheduleFlags(
return true;
}
CLGMPTransport::CLGMPTransport() :
CLGMPTransport::CLGMPTransport(const TransportInstance& config) :
m_config(config),
m_control(m_host),
m_frames(m_host, m_ivshmem),
m_input(m_host)

View File

@@ -33,6 +33,7 @@
class CLGMPTransport final : public ITransport
{
private:
TransportInstance m_config;
// Keep this declaration order. Destruction must release frame and control
// allocations before the LGMP host and its IVSHMEM mapping are destroyed.
CIVSHMEM m_ivshmem;
@@ -44,7 +45,7 @@ private:
std::atomic<bool> m_ready = false;
public:
CLGMPTransport();
explicit CLGMPTransport(const TransportInstance& config);
~CLGMPTransport() override = default;
CLGMPTransport(const CLGMPTransport&) = delete;