|
|
|
@ -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"
|
|
|
|
|