Lines Matching refs:pool
26 * If the pool gets cleaned up, we have to copy the data out
27 * of the pool and onto the heap. But the apr_buckets out there
28 * that point to this pool bucket need to be notified such that
34 * can typecast a pool bucket struct to make it look like a
40 p->pool = NULL;
51 if (p->pool == NULL) {
53 * pool has been cleaned up... masquerade as a heap bucket from now
68 /* If the pool is cleaned up before the last reference goes
74 if (p->pool) {
75 /* the shared resource is still in the pool
76 * because the pool has not been cleaned up yet
79 apr_pool_cleanup_kill(p->pool, p, pool_bucket_cleanup);
84 /* the shared resource is no longer in the pool, it's
85 * on the heap, but this reference still thinks it's a pool
94 const char *buf, apr_size_t length, apr_pool_t *pool)
106 p->pool = pool;
117 apr_pool_cleanup_register(p->pool, p, pool_bucket_cleanup,
124 apr_pool_t *pool,
132 return apr_bucket_pool_make(b, buf, length, pool);