diff options
author | Jim Jagielski <jim@apache.org> | 2002-06-07 14:04:34 +0000 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2002-06-07 14:04:34 +0000 |
commit | 97f891cf55f062d44b61645a65f3fce04dd7cd83 (patch) | |
tree | a1e2d223ee191cded201c3d991ffce55604b8b3b /locks/netware | |
parent | 1d7a68873b63961d1d36fb908eef12b405bd34c2 (diff) | |
download | apr-97f891cf55f062d44b61645a65f3fce04dd7cd83.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: https://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.c | 10 |
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 */ |