On Tue, Jul 17, 2001 at 04:49:04PM -0700, dean gaudet wrote:
> > Please allow me to use pseudocode:
> >
> > void * worker_function(void * opaque_application_data) {
> >
> > apr_pool_t *thread_pool;
> >
> > create_child_pool(&thread_pool, global_root_pool);
>
> now you've got mutexes in global_root_pool. see my performance comment
> above.
IMHO, the global_root_pool should be the "standard" SMS - which is
just a SMS that calls malloc/free - no locking there. It actually
has no free-list/allocation-list. This strategy may or may not
work - depending if you'd ever want to cleanup the global_root_pool
(in Aaron's example). Which I don't think we'd want to do anyway.
-- justin