From 5b6bb3193b7c3fb7081c28be17d1055d14445ac4 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Mon, 19 Oct 2020 16:35:36 +0800 Subject: [PATCH] fast_task_queue.h: change nio_stage field --- HISTORY | 2 +- src/fast_task_queue.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 4291d65..d053ac8 100644 --- a/HISTORY +++ b/HISTORY @@ -1,5 +1,5 @@ -Version 1.44 2020-10-10 +Version 1.44 2020-10-19 * add test file src/tests/test_pthread_lock.c * add uniq_skiplist.[hc] * add function split_string_ex diff --git a/src/fast_task_queue.h b/src/fast_task_queue.h index 72f3723..b0bbd5f 100644 --- a/src/fast_task_queue.h +++ b/src/fast_task_queue.h @@ -83,7 +83,10 @@ struct fast_task_info int length; //data length int offset; //current offset uint16_t port; //peer port - volatile short nio_stage; //stage for network IO + struct { + uint8_t current; + uint8_t notify; + } nio_stages; //stages for network IO bool canceled; //if task canceled int connect_timeout; //for client side int network_timeout; -- GitLab