Skip to content

Commit fd74043

Browse files
committed
support: fix spurious failures to enqueue in byte buffer pool
1 parent cdf1aae commit fd74043

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/srsran/support/memory_pool/fixed_size_memory_block_pool.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ class fixed_size_memory_block_pool
180180
// Local cache is full. Rebalance by sending batches of blocks to central cache.
181181
// We leave one batch in the local cache.
182182
for (unsigned i = 0; i != max_local_batches - 1; ++i) {
183-
report_fatal_error_if_not(central_mem_cache.try_enqueue(w_ctx->local_cache.back()),
184-
"Failed to push batch to central cache");
183+
report_fatal_error_if_not(central_mem_cache.enqueue(w_ctx->local_cache.back()),
184+
"Failed to push allocated batch back to central cache");
185185
w_ctx->local_cache.pop_back();
186186
}
187187
}

0 commit comments

Comments
 (0)