BBS:      TELESC.NET.BR
Assunto:  src/xpdev/link_list.c
De:       Rob Swindell (on Windows 11)
Data:     Wed, 11 Mar 2026 03:54:58 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/4aa8f644d5217556c33c60fa
Modified Files:
	src/xpdev/link_list.c
Log Message:
MSFT Application Verifier complains the critical section is already initialized

On Windows, we may not have been actually mutex-protecting some or all of our
Linked Lists, or maybe all Linked Lists were sharing the same mutex (critsect)
because the address of the "critical section object" (which we use as a mutex)
*must* (apparently) be unique or it's just reinitialized for every new linked
list that's created/initialized. Either way, it wasn't good.

For now (at least), pthread_mutex_initializer_np() should not be used on
Windows!
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]