Lines Matching defs:pool
20 #include <isc/pool.h>
49 /* Create a pool */
52 atf_tc_set_md_var(tc, "descr", "create a pool");
56 isc_pool_t *pool = NULL;
63 result = isc_pool_create(mctx, 8, poolfree, poolinit, taskmgr, &pool);
65 ATF_REQUIRE_EQ(isc_pool_count(pool), 8);
67 isc_pool_destroy(&pool);
68 ATF_REQUIRE_EQ(pool, NULL);
73 /* Resize a pool */
76 atf_tc_set_md_var(tc, "descr", "expand a pool");
111 /* resizing to larger size should make a new pool */
132 isc_pool_t *pool = NULL;
141 result = isc_pool_create(mctx, 2, poolfree, poolinit, taskmgr, &pool);
143 ATF_REQUIRE_EQ(isc_pool_count(pool), 2);
145 item = isc_pool_get(pool);
149 item = isc_pool_get(pool);
153 item = isc_pool_get(pool);
161 isc_pool_destroy(&pool);
162 ATF_REQUIRE_EQ(pool, NULL);