浏览代码

Reorder functions

bel 8 年之前
父节点
当前提交
ceaaca0a0a
共有 1 个文件被更改,包括 10 次插入9 次删除
  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;
 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__)
 #if defined(__GNUC__)
 /* Show no warning in case system functions are not used. */
 /* Show no warning in case system functions are not used. */
 #pragma GCC diagnostic push
 #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 */
 /* Directory entry */
 struct de {
 struct de {
 	struct mg_connection *conn;
 	struct mg_connection *conn;