MCPcopy Create free account
hub / github.com/acl-dev/acl / test_pool

Method test_pool

lib_acl_cpp/samples/dbuf/dbuf1/main.cpp:105–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104private:
105 void test_pool()
106 {
107 acl::dbuf_pool* pool = new acl::dbuf_pool;
108 test_buf2* buf;
109
110 for (int i = 0; i < max_loop_; i++)
111 {
112 for (int j = 0; j < max_count_; j++)
113 {
114 buf = new (pool) test_buf2(pool);
115 delete buf;
116 }
117
118 pool->dbuf_reset();
119 }
120
121 pool->destroy();
122 }
123
124 void test_pool2()
125 {

Callers

nothing calls this directly

Calls 2

dbuf_resetMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected