diff options
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/kernel/gc.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sca-cpp/trunk/kernel/gc.hpp b/sca-cpp/trunk/kernel/gc.hpp index ca01fdf95f..77a879629a 100644 --- a/sca-cpp/trunk/kernel/gc.hpp +++ b/sca-cpp/trunk/kernel/gc.hpp @@ -112,7 +112,17 @@ private: }; /** - * Return APR pool used by a gc_pool. + * Make a new APR pool. + */ +apr_pool_t* mkpool() { + apr_pool_t* p = NULL; + apr_pool_create(&p, NULL); + assert(p != NULL); + return p; +} + +/** + * Return the APR pool used by a gc_pool. */ apr_pool_t* pool(const gc_pool& pool) { return pool.apr_pool; |