From bb33b2e09fa229e729c7c8f11ddfa41333e95d29 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Wed, 21 Oct 2020 09:30:53 +0800 Subject: [PATCH] notify field: add volatile modifier --- HISTORY | 2 +- src/fast_task_queue.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index d053ac8..e8a0df1 100644 --- a/HISTORY +++ b/HISTORY @@ -1,5 +1,5 @@ -Version 1.44 2020-10-19 +Version 1.44 2020-10-21 * 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 b0bbd5f..37a02f1 100644 --- a/src/fast_task_queue.h +++ b/src/fast_task_queue.h @@ -85,7 +85,7 @@ struct fast_task_info uint16_t port; //peer port struct { uint8_t current; - uint8_t notify; + volatile uint8_t notify; } nio_stages; //stages for network IO bool canceled; //if task canceled int connect_timeout; //for client side