From 9184a9fbdd0033073ec934e72ed862ff89ced574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sat, 15 Oct 2022 01:04:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.c b/server.c index 86f311f..91b06dc 100644 --- a/server.c +++ b/server.c @@ -661,15 +661,16 @@ static void handle_accept(void *p) { return; } timer_pointer_of(p)->timerthread = thread; + puts("Creating timer thread succeeded"); } else { pthread_mutex_lock(&timer_pointer_of(p)->tmc); pthread_cond_signal(&timer_pointer_of(p)->tc); // wakeup thread pthread_mutex_unlock(&timer_pointer_of(p)->tmc); + puts("Waking up timer thread succeeded"); } pthread_cleanup_push((void*)&cleanup_thread, p); puts("Handling accept..."); while(1) { - puts("Creating timer thread succeeded"); int accept_fd = timer_pointer_of(p)->accept_fd; uint32_t index = timer_pointer_of(p)->index; uint8_t *buff = timer_pointer_of(p)->buf;