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
Type
Valid Range
Required
cb_id
The index of the circular buffer (CB)
uint32_t
0 to 31
True
num_tiles
The number of tiles to check for
uint32_t
It must be less or equal than the size of the CB (the total number of tiles that fit into the CB)