1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-05 02:00:25 +08:00

优化输出

This commit is contained in:
源文雨
2022-10-15 01:04:54 +08:00
parent 8c955bcbc0
commit 9184a9fbdd

View File

@@ -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;