summaryrefslogtreecommitdiff
path: root/shmem
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2001-12-29 23:14:22 +0000
committerJeff Trawick <trawick@apache.org>2001-12-29 23:14:22 +0000
commit9ed254824f9894d847201f704e900d27230bf089 (patch)
treeccd3de96eba5c37b36a3b2b4f2438d151757188a /shmem
parent34f882ca452ba86b0240376bbdfb15a94e2958de (diff)
downloadapr-9ed254824f9894d847201f704e900d27230bf089.tar.gz
roll the extra apr_lock_create_np() functionality into apr_lock_create()
and get rid of apr_lock_create_np(); apr_lock_create() has a new parameter for specifying the lock mechanism (or APR_LOCK_DEFAULT to let APR choose) (same for apr_proc_mutex_create_np() and apr_proc_mutex_create()) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62684 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r--shmem/unix/shmem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shmem/unix/shmem.c b/shmem/unix/shmem.c
index 7cda42332..0b1d9de5b 100644
--- a/shmem/unix/shmem.c
+++ b/shmem/unix/shmem.c
@@ -209,7 +209,8 @@ APR_DECLARE(apr_status_t) apr_shm_init(apr_shmem_t **m, apr_size_t reqsize,
new_m->curmem = mem;
new_m->length = reqsize;
- apr_lock_create(&new_m->lock, APR_MUTEX, APR_CROSS_PROCESS, NULL, pool);
+ apr_lock_create(&new_m->lock, APR_MUTEX, APR_CROSS_PROCESS,
+ APR_LOCK_DEFAULT, NULL, pool);
if (!new_m->lock)
return APR_EGENERAL;