Browse Source

Reorder functions

bel 8 years ago
parent
commit
ceaaca0a0a
1 changed files with 10 additions and 9 deletions
  1. 10 9
      src/civetweb.c

+ 10 - 9
src/civetweb.c

@@ -1030,6 +1030,16 @@ static int sTlsInit = 0;
 static int thread_idx_max = 0;
 
 
+struct mg_workerTLS {
+	int is_master;
+	unsigned long thread_idx;
+#if defined(_WIN32) && !defined(__SYMBIAN32__)
+	HANDLE pthread_cond_helper_mutex;
+	struct mg_workerTLS *next_waiting_thread;
+#endif
+};
+
+
 #if defined(__GNUC__)
 /* Show no warning in case system functions are not used. */
 #pragma GCC diagnostic push
@@ -1770,15 +1780,6 @@ struct mg_connection {
 };
 
 
-struct mg_workerTLS {
-	int is_master;
-	unsigned long thread_idx;
-#if defined(_WIN32) && !defined(__SYMBIAN32__)
-	HANDLE pthread_cond_helper_mutex;
-	struct mg_workerTLS *next_waiting_thread;
-#endif
-};
-
 /* Directory entry */
 struct de {
 	struct mg_connection *conn;