Checkpoint - all src/ except src/input

This commit is contained in:
Robin Sommer 2012-05-25 14:05:50 -07:00
commit 61ce9b5412
91 changed files with 8917 additions and 16 deletions

View file

@ -53,6 +53,13 @@ public:
*/
bool Ready();
/**
* Returns true if the next Get() operation might succeed.
* This function may occasionally return a value not
* indicating the actual state, but won't do so very often.
*/
bool MaybeReady() { return ( ( read_ptr - write_ptr) != 0 ); }
/**
* Returns the number of queued items not yet retrieved.
*/