From da9e939f3cb59d9724d9212f7f25513c28b3c646 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 2 Feb 2019 17:03:41 +0100 Subject: [PATCH] CLEANUP: threads: fix misleading comment about all_threads_mask This variable changed a bit after 1.8, it's never zero anymore. --- include/common/hathreads.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/common/hathreads.h b/include/common/hathreads.h index 019d74970..6f788769f 100644 --- a/include/common/hathreads.h +++ b/include/common/hathreads.h @@ -26,9 +26,10 @@ #include /* Note about all_threads_mask : - * - with threads support disabled, this symbol is defined as zero (0UL). - * - with threads enabled, this variable is never zero, it contains the mask - * of enabled threads. Thus if only one thread is enabled, it equals 1. + * - this variable is comprised between 1 and LONGBITS. + * - with threads support disabled, this symbol is defined as constant 1UL. + * - with threads enabled, it contains the mask of enabled threads. Thus if + * only one thread is enabled, it equals 1. */ #ifndef USE_THREAD