guruofquality / gras

GRAS: The GNU Radio Advanced Scheduler
https://github.com/guruofquality/gras/wiki
Other
23 stars 11 forks source link

pop output buffer API #41

Closed guruofquality closed 11 years ago

guruofquality commented 11 years ago

SBuffer Block::pop_output_buffer(const size_t which_output) { SBuffer buff = (_this)->block->output_queues.front(which_output); //set the offset on the buffer to be popped so that something will be removed //TODO this basically addresses popping on the circ buff, //but perhaps there is a better API for output buffer access. //like using get_output_buffer() + pop(some length) (_this)->block->output_queues.front(which_output).offset = buff.get_actual_length(); (*this)->block->output_queues.pop(which_output); return buff; }

guruofquality commented 11 years ago

0a8e3475a6606620a9ad588074da713fb93e1188