28 #ifndef V8_CIRCULAR_QUEUE_H_
29 #define V8_CIRCULAR_QUEUE_H_
49 int desired_chunk_size_in_bytes,
50 int buffer_size_in_chunks);
75 struct ProducerPosition {
78 struct ConsumerPosition {
79 Cell* dequeue_chunk_pos;
80 Cell* dequeue_chunk_poll_pos;
82 Cell* dequeue_end_pos;
87 const int record_size_;
88 const int chunk_size_in_bytes_;
89 const int chunk_size_;
90 const int buffer_size_;
91 const int producer_consumer_distance_;
94 ProducerPosition* producer_pos_;
95 ConsumerPosition* consumer_pos_;
103 #endif // V8_CIRCULAR_QUEUE_H_
void FlushResidualRecords()
SamplingCircularQueue(int record_size_in_bytes, int desired_chunk_size_in_bytes, int buffer_size_in_chunks)