jwoolley 2002/07/01 00:38:10
Modified: buckets apr_brigade.c
Log:
On second thought, I liked this better the way it was before because it
makes it crystal clear that the *only* difference between
apr_brigade_destroy() and apr_brigade_cleanup() is that one kills the
cleanup and the other one doesn't. An important distinction.
Revision Changes Path
1.47 +2 -1 apr-util/buckets/apr_brigade.c
Index: apr_brigade.c
===================================================================
RCS file: /home/cvs/apr-util/buckets/apr_brigade.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -u -r1.46 -r1.47
--- apr_brigade.c 1 Jul 2002 07:31:01 -0000 1.46
+++ apr_brigade.c 1 Jul 2002 07:38:10 -0000 1.47
@@ -93,7 +93,8 @@
APU_DECLARE(apr_status_t) apr_brigade_destroy(apr_bucket_brigade *b)
{
- return apr_pool_cleanup_run(b->p, b, brigade_cleanup);
+ apr_pool_cleanup_kill(b->p, b, brigade_cleanup);
+ return apr_brigade_cleanup(b);
}
APU_DECLARE(apr_bucket_brigade *) apr_brigade_create(apr_pool_t *p,