apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsm...@apache.org
Subject svn commit: r1770128 - /apr/apr/branches/1.6.x/test/testprocmutex.c
Date Thu, 17 Nov 2016 08:29:24 GMT
Author: gsmith
Date: Thu Nov 17 08:29:24 2016
New Revision: 1770128

URL: http://svn.apache.org/viewvc?rev=1770128&view=rev
Log:
We may not have fork but we still need lockmech_t

Modified:
    apr/apr/branches/1.6.x/test/testprocmutex.c

Modified: apr/apr/branches/1.6.x/test/testprocmutex.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.6.x/test/testprocmutex.c?rev=1770128&r1=1770127&r2=1770128&view=diff
==============================================================================
--- apr/apr/branches/1.6.x/test/testprocmutex.c (original)
+++ apr/apr/branches/1.6.x/test/testprocmutex.c Thu Nov 17 08:29:24 2016
@@ -25,6 +25,11 @@
 #include <stdlib.h>
 #include "testutil.h"
 
+typedef struct lockmech {
+    apr_lockmech_e num;
+    const char *name;
+} lockmech_t;
+
 #if APR_HAS_FORK
 
 #define MAX_ITER 200
@@ -35,11 +40,6 @@
 static apr_proc_mutex_t *proc_lock;
 static volatile int *x;
 
-typedef struct lockmech {
-    apr_lockmech_e num;
-    const char *name;
-} lockmech_t;
-
 /* a slower more racy way to implement (*x)++ */
 static int increment(int n)
 {



Mime
View raw message