Browse Source

modify thread num.

zhengwei 8 years ago
parent
commit
dca00d4a5f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      ProcessRemodule.h

+ 3 - 3
ProcessRemodule.h

@@ -13,7 +13,7 @@
 //message process thread function
 #define  TCP_MSG WM_USER+100
 #define  MAX_INFO_SIZE     20
-#define    MSG_PROCESS_THREAD_NUM    5
+#define    MSG_PROCESS_THREAD_NUM    1
 extern HANDLE hThread[MSG_PROCESS_THREAD_NUM];
 extern unsigned nThreadID[MSG_PROCESS_THREAD_NUM];
 extern int message_process_thread_init();
@@ -22,7 +22,7 @@ extern int send_tcp_thread_message(ParseData* pchr);
 
 //SQL thread function
 #define SQL_MSG WM_USER+200
-#define    SQL_PROCESS_THREAD_NUM    3
+#define    SQL_PROCESS_THREAD_NUM    1
 extern HANDLE hSqlThread[SQL_PROCESS_THREAD_NUM];
 extern unsigned nSqlThreadID[SQL_PROCESS_THREAD_NUM];
 extern int sql_process_thread_init();
@@ -31,7 +31,7 @@ extern int send_sql_message(char* pchr);
 
 //err log thread function
 #define ERR_LOG_MSG WM_USER+300
-#define    ERR_LOG_PROCESS_THREAD_NUM    3
+#define    ERR_LOG_PROCESS_THREAD_NUM    1
 extern HANDLE hErrLogThread[ERR_LOG_PROCESS_THREAD_NUM];
 extern unsigned nErrLogThreadID[ERR_LOG_PROCESS_THREAD_NUM];
 extern int err_log_process_thread_init();