Searched refs:cap (Results 1 – 2 of 2) sorted by relevance
1044 std::size_t cap = nthreads / 2; in TestAbort() local1045 if (!cap) cap = 1; in TestAbort()1046 iq4.set_capacity(cap); in TestAbort()1054 …REQUIRE_MESSAGE(num_pushed <= cap, "at most cap elements should have been pushed to queue of size … in TestAbort()1055 if (nthreads>= cap) in TestAbort()1056 …REQUIRE_MESSAGE(failed_pushes == nthreads-cap, "nthreads-cap threads should have failed to push an… in TestAbort()1059 …REQUIRE_MESSAGE((int)num_popped <= cap, "at most cap elements should have been popped from queue o… in TestAbort()1060 if (nthreads>= cap) in TestAbort()1061 …REQUIRE_MESSAGE(failed_pops == nthreads-cap, "nthreads-cap threads should have failed to pop an el… in TestAbort()
894 size_type cap = capacity(); in internal_grow_to_at_least() local895 __TBB_ASSERT( cap >= new_size, nullptr); in internal_grow_to_at_least()