From 58b09c8677ecb8e39820057337faf13806c893fb Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 20 May 2019 12:14:52 +0200 Subject: [PATCH] fix pool_allocate macros for new unique_buffer --- lib/include/srslte/common/common.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/include/srslte/common/common.h b/lib/include/srslte/common/common.h index 3d2e17ff7..7ada72100 100644 --- a/lib/include/srslte/common/common.h +++ b/lib/include/srslte/common/common.h @@ -70,12 +70,12 @@ //#define SRSLTE_BUFFER_POOL_LOG_ENABLED #ifdef SRSLTE_BUFFER_POOL_LOG_ENABLED -#define pool_allocate (pool->allocate(__PRETTY_FUNCTION__)) -#define pool_allocate_blocking (pool->allocate(__PRETTY_FUNCTION__, true)) +#define pool_allocate (srslte::allocate_unique_buffer(*pool, __PRETTY_FUNCTION__)) +#define pool_allocate_blocking (srslte::allocate_unique_buffer(*pool, __PRETTY_FUNCTION__, true)) #define SRSLTE_BUFFER_POOL_LOG_NAME_LEN 128 #else -#define pool_allocate (pool->allocate()) -#define pool_allocate_blocking (pool->allocate(NULL, true)) +#define pool_allocate (srslte::allocate_unique_buffer(*pool)) +#define pool_allocate_blocking (srslte::allocate_unique_buffer(*pool, true)) #endif #include "srslte/srslte.h"