Subj : src/xpdev/threadwrap.c threadwrap.h To : Git commit to main/sbbs/master From : Rob Swindell (on Debian Linux) Date : Mon Jun 16 2025 19:06:06 https://gitlab.synchro.net/main/sbbs/-/commit/4879ec1ba7d08508e0cdbe74 Modified Files: src/xpdev/threadwrap.c threadwrap.h Log Message: Resolve discrepency between std-atomic and mutex-based protected_int*_adjust() Since commit 692c8128 (4 years ago), the std-atomic and mutex-based based implementations of protected_int*_adjust() have different in a critical detail: The std-atomic verisons return the old/original integer value while the mutex versions (used in most or all .c files) return the new/adjusted integer value. Standardize on the std-atomic pattern: if you want the new/adjusted integer value, use the protected_int*_adjust_fetch() version of these functions. --- þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net .