diff --git a/LFtid1056/main_thread.cpp b/LFtid1056/main_thread.cpp index 303ce7e..6dd647e 100644 --- a/LFtid1056/main_thread.cpp +++ b/LFtid1056/main_thread.cpp @@ -35,7 +35,7 @@ typedef struct { #endif extern int INITFLAG;//台账等初始化完成标志 -extern void cleanup_args(ThreadArgs* args); +//extern void cleanup_args(ThreadArgs* args); void init_daemon(void) { @@ -312,10 +312,7 @@ void restart_thread(int index) { } } else { // 其他工作线程暂不重启 - pthread_mutex_lock(&global_lock); - printf("Thread %d is not configured for restart\n", index); - thread_info[index].state = THREAD_CRASHED; - pthread_mutex_unlock(&global_lock); + } /*// 创建新线程