Lines Matching refs:capacity
32 constexpr size_t capacity = 10; in TEST() local
33 BlockingQueue<int> queue(capacity); in TEST()
43 constexpr size_t capacity = 3; in TEST() local
44 BlockingQueue<int> queue(capacity); in TEST()
50 ASSERT_FALSE(queue.push(4)) << "Queue should reach capacity at size " << capacity; in TEST()
58 constexpr size_t capacity = 10; in TEST() local
59 BlockingQueue<int> queue(capacity); in TEST()
61 for (size_t i = 0; i < capacity; i++) { in TEST()
64 for (size_t i = 0; i < capacity; i++) { in TEST()
70 constexpr size_t capacity = 2; in TEST() local
71 BlockingQueue<int> queue(capacity); in TEST()
82 constexpr size_t capacity = 4; in TEST() local
83 BlockingQueue<int> queue(capacity); in TEST()
99 constexpr size_t capacity = 100; // large capacity to increase likelihood that threads overlap in TEST() local
100 BlockingQueue<int> queue(capacity); in TEST()
104 for (size_t i = 0; i < capacity; i++) { in TEST()
110 for (size_t i = 0; i < capacity; i++) { in TEST()
124 constexpr size_t capacity = 1; in TEST() local
125 BlockingQueue<int> queue(capacity); in TEST()