From b3005ecbdc32a789c849bba73ba8262eb2fd1cf4 Mon Sep 17 00:00:00 2001 From: Dennis Klein Date: Tue, 26 Feb 2019 17:09:34 +0100 Subject: [PATCH] Fix object lifetime bug --- fairmq/ofi/Socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fairmq/ofi/Socket.h b/fairmq/ofi/Socket.h index 9fd12085..de6f4d63 100644 --- a/fairmq/ofi/Socket.h +++ b/fairmq/ofi/Socket.h @@ -82,6 +82,7 @@ class Socket final : public fair::mq::Socket private: Context& fContext; + asiofi::allocated_pool_resource fControlMemPool; std::unique_ptr fOfiInfo; std::unique_ptr fOfiFabric; std::unique_ptr fOfiDomain; @@ -100,7 +101,6 @@ class Socket final : public fair::mq::Socket azmq::socket fSendQueueWrite, fSendQueueRead; azmq::socket fRecvQueueWrite, fRecvQueueRead; asiofi::semaphore fSendSem, fRecvSem; - asiofi::allocated_pool_resource fControlMemPool; std::atomic fNeedOfiMemoryRegistration; auto SendQueueReader() -> void;