Lines Matching defs:apv
97 void *apv[cObjects];
100 apv[i] = NULL;
101 RTTESTI_CHECK_RC(RTMemCacheAllocEx(hMemCache, &apv[i]), VINF_SUCCESS);
116 RTMemCacheFree(hMemCache, apv[i]);
173 void *apv[cObjects];
176 apv[i] = NULL;
177 RTTESTI_CHECK_RC_RETV(RTMemCacheAllocEx(g_hMemCache, &apv[i]), VINF_SUCCESS);
179 RTTESTI_CHECK(!strcmp((char *)apv[i], "ctor was called\n"));
181 RTTESTI_CHECK(!strcmp((char *)apv[i], "ctor was called\nused\n"));
182 strcat((char *)apv[i], "used\n");
189 RTMemCacheFree(g_hMemCache, apv[i]);
217 void *apv[64];
218 for (unsigned i = 0; i < RT_ELEMENTS(apv); i++)
220 apv[i] = RTMemCacheAlloc(g_hMemCache);
221 RTTEST_CHECK(g_hTest, apv[i] != NULL);
223 for (unsigned i = 0; i < RT_ELEMENTS(apv); i++)
224 RTMemCacheFree(g_hMemCache, apv[i]);
226 cIterations += RT_ELEMENTS(apv);
233 void *apv[64];
235 for (unsigned i = 0; i < RT_ELEMENTS(apv); i++)
237 apv[i] = RTMemAlloc(cbObject);
238 RTTEST_CHECK(g_hTest, apv[i] != NULL);
241 for (unsigned i = 0; i < RT_ELEMENTS(apv); i++)
242 RTMemFree(apv[i]);
244 cIterations += RT_ELEMENTS(apv);