IoUringAssmEngn: map StagingBuff w/mmap; reg w/io_uring; add eventFd
StagingBuffer: We now allocate memory with mmap(MAP_ANONYMOUS) so that we can be sure it can be pinned with io_uring_register_buffers(). This ensures that if DMA is possible, it should be usable. IoUringAssemblyEngine: We now register an eventfd with io_uring so that we can listen for CQEs with boost::asio.
This commit is contained in:
@@ -46,6 +46,8 @@ private:
|
||||
struct io_uring ring;
|
||||
bool isSetup;
|
||||
|
||||
// Eventfd for CQE notifications (used with boost's unified loop)
|
||||
int eventfdFd;
|
||||
// Point cloud data socket descriptor
|
||||
std::shared_ptr<boost::asio::posix::stream_descriptor> pcloudDataFdDesc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user