summaryrefslogtreecommitdiff
path: root/locks/netware
diff options
context:
space:
mode:
authorjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2002-06-07 14:04:34 +0000
committerjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2002-06-07 14:04:34 +0000
commitf1cd0b106da70b4d2c287222f238db48548221e3 (patch)
treea1e2d223ee191cded201c3d991ffce55604b8b3b /locks/netware
parent2302a67c7b4252a6a886207099840bbcfc1f0248 (diff)
downloadlibapr-f1cd0b106da70b4d2c287222f238db48548221e3.tar.gz
Added 2 additional lock functions: apr_proc_mutex_name and
apr_proc_mutex_defname which returns the type name of the mutex (eg: "sysvsem") as well as the default mutex type (APR_LOCK_DEFAULT). Mostly useful under Unix were the locktypes are selectable. apr_proc_mutex_name takes a *apr_proc_mutex_t argument, whereas apr_proc_mutex_defname takes (and requires) none. For those systems that don't have selectable mutex types, I've "thought up" names that made sense... feel free to modify :) PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63470 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks/netware')
-rw-r--r--locks/netware/proc_mutex.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/locks/netware/proc_mutex.c b/locks/netware/proc_mutex.c
index 113c875cd..e86802104 100644
--- a/locks/netware/proc_mutex.c
+++ b/locks/netware/proc_mutex.c
@@ -115,6 +115,16 @@ APR_DECLARE(apr_status_t) apr_proc_mutex_destroy(apr_proc_mutex_t *mutex)
return APR_ENOLOCK;
}
+APR_DECLARE(const char *) apr_proc_mutex_name(apr_proc_mutex_t *mutex)
+{
+ return "netwarethread";
+}
+
+APR_DECLARE(const char *) apr_proc_mutex_defname(void)
+{
+ return "netwarethread";
+}
+
APR_POOL_IMPLEMENT_ACCESSOR(proc_mutex)
/* Implement OS-specific accessors defined in apr_portable.h */