• Mike Curtiss's avatar
    Add sizeGuess() member to ProducerConsumerQueue · fdbbdb8f
    Mike Curtiss authored
    Summary:
    This is part 1 of a change to add hysteretic behavior to a blocking queue based on ProducerConsumerQueue.
    
    Knowing the size is useful for monitoring and possibly for objects that contain a ProducerConsumerQueue.
    
    Test Plan:
    Added tiny test-case.
    
    Tests pass
    
    Reviewed By: delong.j@fb.com
    
    FB internal diff: D496787
    fdbbdb8f
ProducerConsumerQueue.md 2.65 KB