mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 07:01:30 +00:00
[idd] transport: configure active instances
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user