cb_pages_available_at_front
-
bool cb_pages_available_at_front(int32_t operand, int32_t num_pages)
-
A non-blocking call that tells the caller if the specified number of pages are available in the specified circular buffer (CB). This call is used by the consumer of the CB to see if the producer has filled the CB with at least the specified number of tiles. This is a polling operation that does not advance any CB pointer. See cb_wait_front for the blocking variant and cumulative wait semantics.
Return value: true if the specified number of pages are available
Argument Description
cb_id The index of the circular buffer (CB)
num_tiles The number of tiles to check for