From 6a54076cf5f44e67e23128fec7eb72e45d748d3f Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Wed, 9 Sep 2020 12:26:43 +0800 Subject: [PATCH] change field nio_stage from char to short --- src/fast_task_queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fast_task_queue.h b/src/fast_task_queue.h index b15ba5c..5a3a0fb 100644 --- a/src/fast_task_queue.h +++ b/src/fast_task_queue.h @@ -76,7 +76,7 @@ struct fast_task_info int length; //data length int offset; //current offset uint16_t port; //peer port - char nio_stage; //stage for network IO + volatile short nio_stage; //stage for network IO bool canceled; //if task canceled int connect_timeout; //for client side int network_timeout;