From: Willy Tarreau Date: Sat, 2 Feb 2019 16:03:41 +0000 (+0100) Subject: CLEANUP: threads: fix misleading comment about all_threads_mask X-Git-Tag: v2.0-dev1~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da9e939f3cb59d9724d9212f7f25513c28b3c646;p=thirdparty%2Fhaproxy.git CLEANUP: threads: fix misleading comment about all_threads_mask This variable changed a bit after 1.8, it's never zero anymore. --- diff --git a/include/common/hathreads.h b/include/common/hathreads.h index 019d749703..6f788769f9 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