mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 07:01:30 +00:00
[idd] lgmp: expose stream allocation
Expose LGMP stream creation through the existing IDD host wrapper so subsystem transports do not reach through its ownership boundary. Keep stream lifetime and binding under each transport while the host continues to own the underlying shared-memory allocator.
This commit is contained in:
@@ -150,6 +150,12 @@ LGMP_STATUS CLGMPHost::CreateQueue(
|
|||||||
return lgmpHostQueueNew(m_host, config, queue);
|
return lgmpHostQueueNew(m_host, config, queue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LGMP_STATUS CLGMPHost::CreateStream(
|
||||||
|
const struct LGMPStreamConfig& config, PLGMPHostStream * stream)
|
||||||
|
{
|
||||||
|
return lgmpHostStreamNew(m_host, config, stream);
|
||||||
|
}
|
||||||
|
|
||||||
LGMP_STATUS CLGMPHost::Allocate(uint32_t size, PLGMPMemory * memory)
|
LGMP_STATUS CLGMPHost::Allocate(uint32_t size, PLGMPMemory * memory)
|
||||||
{
|
{
|
||||||
return lgmpHostMemAlloc(m_host, size, memory);
|
return lgmpHostMemAlloc(m_host, size, memory);
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "lgmp/host.h"
|
#include "lgmp/host.h"
|
||||||
|
#include "lgmp/stream.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
class CIVSHMEM;
|
class CIVSHMEM;
|
||||||
@@ -54,6 +55,8 @@ public:
|
|||||||
|
|
||||||
LGMP_STATUS CreateQueue(const struct LGMPQueueConfig& config,
|
LGMP_STATUS CreateQueue(const struct LGMPQueueConfig& config,
|
||||||
PLGMPHostQueue * queue);
|
PLGMPHostQueue * queue);
|
||||||
|
LGMP_STATUS CreateStream(const struct LGMPStreamConfig& config,
|
||||||
|
PLGMPHostStream * stream);
|
||||||
LGMP_STATUS Allocate(uint32_t size, PLGMPMemory * memory);
|
LGMP_STATUS Allocate(uint32_t size, PLGMPMemory * memory);
|
||||||
LGMP_STATUS AllocateAligned(uint32_t size, uint32_t alignment,
|
LGMP_STATUS AllocateAligned(uint32_t size, uint32_t alignment,
|
||||||
PLGMPMemory * memory);
|
PLGMPMemory * memory);
|
||||||
|
|||||||
Reference in New Issue
Block a user