mod_shm_counter
mod_shm_counter is an example Apache 2.0 module that demonstrates a number of concepts that are crucial for high-performance Apache modules:
- Shared Memory
apr_shm_create
apr_shm_baseaddr_get
apr_shm_attach
- Proper Pool Use
- Proper operation within Apache 2.0 Request Lifecycle
- Global Mutexes
apr_global_mutex_create
apr_global_mutex_child_init
apr_global_mutex_lock
apr_global_mutex_unlock
- Proper Pool Use
- Proper operation within Apache 2.0 Request Lifecycle
We would love to hear back from you! Please send us your comments and suggestions. Patches are always greatly appreciated.
License
mod_shm_counter is released under the following terms:
/* ==================================================================== * Copyright (c) 2002 Aaron Bannert * All rights reserved. * * Redistribution and use in source an binary forms, with or without * modification, are perimtted. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * ==================================================================== */
Downloads
Version 1.0 (18-Jun-2002)
- mod_shm_counter-1.0.tar.gz (contains build support scripts)
- mod_shm_counter.c