You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mt...@apache.org on 2005/01/10 08:49:14 UTC
svn commit: r124774 - /apr/apr/trunk/locks/win32/proc_mutex.c
Author: mturk
Date: Sun Jan 9 23:49:12 2005
New Revision: 124774
URL: http://svn.apache.org/viewcvs?view=rev&rev=124774
Log:
Add missing apr_proc_mutex_cleanup function call.
Modified:
apr/apr/trunk/locks/win32/proc_mutex.c
Modified: apr/apr/trunk/locks/win32/proc_mutex.c
Url: http://svn.apache.org/viewcvs/apr/apr/trunk/locks/win32/proc_mutex.c?view=diff&rev=124774&p1=apr/apr/trunk/locks/win32/proc_mutex.c&r1=124773&p2=apr/apr/trunk/locks/win32/proc_mutex.c&r2=124774
==============================================================================
--- apr/apr/trunk/locks/win32/proc_mutex.c (original)
+++ apr/apr/trunk/locks/win32/proc_mutex.c Sun Jan 9 23:49:12 2005
@@ -67,7 +67,7 @@
#endif
if (!hMutex) {
- return apr_get_os_error();
+ return apr_get_os_error();
}
*mutex = (apr_proc_mutex_t *)apr_palloc(pool, sizeof(apr_proc_mutex_t));
@@ -111,7 +111,7 @@
#endif
if (!hMutex) {
- return apr_get_os_error();
+ return apr_get_os_error();
}
*mutex = (apr_proc_mutex_t *)apr_palloc(pool, sizeof(apr_proc_mutex_t));
@@ -164,6 +164,11 @@
apr_pool_cleanup_kill(mutex->pool, mutex, proc_mutex_cleanup);
}
return stat;
+}
+
+APR_DECLARE(apr_status_t) apr_proc_mutex_cleanup(void *mutex)
+{
+ return apr_proc_mutex_destroy((apr_proc_mutex_t *)mutex);
}
APR_DECLARE(const char *) apr_proc_mutex_lockfile(apr_proc_mutex_t *mutex)