Lines Matching defs:pool
43 isc_taskpool_t *pool = NULL;
50 result = isc_taskpool_create(taskmgr, mctx, 8, 2, &pool);
52 ATF_REQUIRE_EQ(isc_taskpool_size(pool), 8);
54 isc_taskpool_destroy(&pool);
55 ATF_REQUIRE_EQ(pool, NULL);
98 /* resizing to larger size should make a new pool */
119 isc_taskpool_t *pool = NULL;
127 result = isc_taskpool_create(taskmgr, mctx, 2, 2, &pool);
129 ATF_REQUIRE_EQ(isc_taskpool_size(pool), 2);
131 /* two tasks in pool; make sure we can access them more than twice */
132 isc_taskpool_gettask(pool, &task1);
135 isc_taskpool_gettask(pool, &task2);
138 isc_taskpool_gettask(pool, &task3);
145 isc_taskpool_destroy(&pool);
146 ATF_REQUIRE_EQ(pool, NULL);
158 isc_taskpool_t *pool = NULL;
166 result = isc_taskpool_create(taskmgr, mctx, 2, 2, &pool);
168 ATF_REQUIRE_EQ(isc_taskpool_size(pool), 2);
170 isc_taskpool_setprivilege(pool, ISC_TRUE);
172 isc_taskpool_gettask(pool, &task1);
173 isc_taskpool_gettask(pool, &task2);
174 isc_taskpool_gettask(pool, &task3);
184 isc_taskpool_setprivilege(pool, ISC_FALSE);
194 isc_taskpool_destroy(&pool);
195 ATF_REQUIRE_EQ(pool, NULL);