summaryrefslogtreecommitdiff
path: root/test/testlock.c
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 /test/testlock.c
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 '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;
}