You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2016/03/06 00:14:29 UTC

svn commit: r1733774 - /apr/apr/trunk/include/apr.h.in

Author: ylavic
Date: Sat Mar  5 23:14:29 2016
New Revision: 1733774

URL: http://svn.apache.org/viewvc?rev=1733774&view=rev
Log:
Windows' proc_mutex doesn't require require an additional thread_mutex to
synchronize inside the same process, and hence can simply be mapped to a
global_mutex, saving both a double lock and a resource for the latter.

Modified:
    apr/apr/trunk/include/apr.h.in

Modified: apr/apr/trunk/include/apr.h.in
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr.h.in?rev=1733774&r1=1733773&r2=1733774&view=diff
==============================================================================
--- apr/apr/trunk/include/apr.h.in (original)
+++ apr/apr/trunk/include/apr.h.in Sat Mar  5 23:14:29 2016
@@ -630,7 +630,11 @@ typedef  apr_int32_t             apr_int
 #endif /* DARWIN_10 */
 
 /* Does the proc mutex lock threads too */
+#ifdef WIN32
+#define APR_PROC_MUTEX_IS_GLOBAL      1
+#else
 #define APR_PROC_MUTEX_IS_GLOBAL      @proc_mutex_is_global@
+#endif
 
 /* Local machine definition for console and log output. */
 #define APR_EOL_STR              "@eolstr@"