summaryrefslogtreecommitdiff
path: root/test/testlock.c
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-12-29 23:14:22 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-12-29 23:14:22 +0000
commit4f9f87c87fa9ec66b2574f14fa454099e6e0f17f (patch)
treeccd3de96eba5c37b36a3b2b4f2438d151757188a /test/testlock.c
parent715322934f6467641f88031f401014ab02491962 (diff)
downloadlibapr-4f9f87c87fa9ec66b2574f14fa454099e6e0f17f.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: http://svn.apache.org/repos/asf/apr/apr/trunk@62684 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testlock.c')
-rw-r--r--test/testlock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/testlock.c b/test/testlock.c
index 5b13eb5c2..f5e2b9b81 100644
--- a/test/testlock.c
+++ b/test/testlock.c
@@ -267,7 +267,7 @@ apr_status_t test_rw(void)
printf("RW Lock Tests\n");
printf("%-60s", " Initializing the RW lock");
s1 = apr_lock_create(&thread_rw_lock, APR_READWRITE, APR_INTRAPROCESS,
- "lock.file", pool);
+ APR_LOCK_DEFAULT, "lock.file", pool);
if (s1 != APR_SUCCESS) {
printf("Failed!\n");
return s1;
@@ -315,7 +315,7 @@ apr_status_t test_exclusive(void)
printf("Exclusive lock test\n");
printf("%-60s", " Initializing the lock");
s1 = apr_lock_create(&thread_lock, APR_MUTEX, APR_INTRAPROCESS,
- "lock.file", pool);
+ APR_LOCK_DEFAULT, "lock.file", pool);
if (s1 != APR_SUCCESS) {
printf("Failed!\n");
@@ -363,8 +363,8 @@ apr_status_t test_multiple_locking(const char *lockfile)
printf("Testing multiple locking\n");
printf("%-60s"," Creating the lock we'll use");
- if ((rv = apr_lock_create(&multi, APR_MUTEX, APR_LOCKALL, lockfile,
- pool)) != APR_SUCCESS) {
+ if ((rv = apr_lock_create(&multi, APR_MUTEX, APR_LOCKALL, APR_LOCK_DEFAULT,
+ lockfile, pool)) != APR_SUCCESS) {
printf("Failed!\n");
return rv;
}