summaryrefslogtreecommitdiff
path: root/include/apr_global_mutex.h
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2009-11-21 14:37:10 +0000
committerJeff Trawick <trawick@apache.org>2009-11-21 14:37:10 +0000
commit2908ffadf0f5df7d13228c7e74ce63a1ac5fe446 (patch)
tree8530b928d31e279ffbfc01cd0e696a9fed808d73 /include/apr_global_mutex.h
parentfab950b118003cbcbc57939f99c3c83b3f408797 (diff)
downloadapr-2908ffadf0f5df7d13228c7e74ce63a1ac5fe446.tar.gz
add missing apr_global_mutex_lockfile(), corresponding to
apr_proc_mutex_lockfile() git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@882915 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_global_mutex.h')
-rw-r--r--include/apr_global_mutex.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/apr_global_mutex.h b/include/apr_global_mutex.h
index dac9d0a0c..3540705d4 100644
--- a/include/apr_global_mutex.h
+++ b/include/apr_global_mutex.h
@@ -121,6 +121,13 @@ APR_DECLARE(apr_status_t) apr_global_mutex_unlock(apr_global_mutex_t *mutex);
APR_DECLARE(apr_status_t) apr_global_mutex_destroy(apr_global_mutex_t *mutex);
/**
+ * Return the name of the lockfile for the mutex, or NULL
+ * if the mutex doesn't use a lock file
+ */
+
+APR_DECLARE(const char *) apr_global_mutex_lockfile(apr_global_mutex_t *mutex);
+
+/**
* Set mutex permissions.
*/
APR_PERMS_SET_IMPLEMENT(global_mutex);
@@ -145,6 +152,7 @@ APR_POOL_DECLARE_ACCESSOR(global_mutex);
#define apr_global_mutex_trylock apr_proc_mutex_trylock
#define apr_global_mutex_unlock apr_proc_mutex_unlock
#define apr_global_mutex_destroy apr_proc_mutex_destroy
+#define apr_global_mutex_lockfile apr_proc_mutex_lockfile
#define apr_global_mutex_pool_get apr_proc_mutex_pool_get
#endif