Searched refs:MAX_TOKENS (Results 1 – 1 of 1) sorted by relevance
143 constexpr std::size_t MAX_TOKENS = 32; variable210 nextBuffer[curToken & (MAX_TOKENS - 1)] = curToken * 3 + 1; in Produce()212 nextBuffer[curToken & (MAX_TOKENS - 1)] = 0; in Produce()234 myToken = myBuffer[curToken & (MAX_TOKENS - 1)]; in Consume()259 unsigned c_buffer[MAX_TOKENS]; in test_producer_consumer()262 REQUIRE_MESSAGE(nTokens <= MAX_TOKENS, "Not enough slots for tokens"); in test_producer_consumer()