← Back to team overview

nrtb-core team mailing list archive

[Blueprint nrtb-circular-queue] Thread-safe circular buffer/queue

 

Blueprint changed by Rick Stovall:

Whiteboard set to:
The new circular_queue template class will in the nrtb_common lib and will provide the following interface:
    constructor and destructor 
   push // put in the queue
   pull   // get from the queue
   park  // blocks the calling thread until there is data to be processed, returns a queue item.
   clear  // clears the queue
   resize // sets the queue size
   size // returns the number of elements in the queue.

-- 
Thread-safe circular buffer/queue
https://blueprints.launchpad.net/nrtb/+spec/nrtb-circular-queue