]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: threads: fix misleading comment about all_threads_mask
authorWilly Tarreau <w@1wt.eu>
Sat, 2 Feb 2019 16:03:41 +0000 (17:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 2 Feb 2019 16:48:39 +0000 (17:48 +0100)
This variable changed a bit after 1.8, it's never zero anymore.

include/common/hathreads.h

index 019d749703b56a9420875b3d5278ceffaefa4659..6f788769f9ae8b0c745318f9fc6fc272faa0fab8 100644 (file)
 #include <common/initcall.h>
 
 /* 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