mirror of https://github.com/PentHertz/srsLTE.git
fix pool_allocate macros for new unique_buffer
This commit is contained in:
parent
0b6efb657e
commit
58b09c8677
|
@ -70,12 +70,12 @@
|
||||||
//#define SRSLTE_BUFFER_POOL_LOG_ENABLED
|
//#define SRSLTE_BUFFER_POOL_LOG_ENABLED
|
||||||
|
|
||||||
#ifdef SRSLTE_BUFFER_POOL_LOG_ENABLED
|
#ifdef SRSLTE_BUFFER_POOL_LOG_ENABLED
|
||||||
#define pool_allocate (pool->allocate(__PRETTY_FUNCTION__))
|
#define pool_allocate (srslte::allocate_unique_buffer(*pool, __PRETTY_FUNCTION__))
|
||||||
#define pool_allocate_blocking (pool->allocate(__PRETTY_FUNCTION__, true))
|
#define pool_allocate_blocking (srslte::allocate_unique_buffer(*pool, __PRETTY_FUNCTION__, true))
|
||||||
#define SRSLTE_BUFFER_POOL_LOG_NAME_LEN 128
|
#define SRSLTE_BUFFER_POOL_LOG_NAME_LEN 128
|
||||||
#else
|
#else
|
||||||
#define pool_allocate (pool->allocate())
|
#define pool_allocate (srslte::allocate_unique_buffer(*pool))
|
||||||
#define pool_allocate_blocking (pool->allocate(NULL, true))
|
#define pool_allocate_blocking (srslte::allocate_unique_buffer(*pool, true))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "srslte/srslte.h"
|
#include "srslte/srslte.h"
|
||||||
|
|
Loading…
Reference in New Issue