use blocking pool_allocate in pdu_queue

master
Andre Puschmann 6 years ago
parent 80031d0846
commit c4c44c33f4

@ -48,7 +48,7 @@ uint8_t* pdu_queue::request(uint32_t len)
fprintf(stderr, "Error request buffer of invalid size %d. Max bytes %d\n", len, MAX_PDU_LEN); fprintf(stderr, "Error request buffer of invalid size %d. Max bytes %d\n", len, MAX_PDU_LEN);
return NULL; return NULL;
} }
pdu_t *pdu = pool.allocate("pdu_queue::request"); pdu_t* pdu = pool.allocate("pdu_queue::request", true);
if (!pdu) { if (!pdu) {
if (log_h) { if (log_h) {
log_h->error("Not enough buffers for MAC PDU\n"); log_h->error("Not enough buffers for MAC PDU\n");

Loading…
Cancel
Save