BBS:      TELESC.NET.BR
Assunto:  src/sbbs3/ratelimit.hpp
De:       Rob Swindell (on Windows 11)
Data:     Fri, 22 May 2026 01:28:50 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/9cff8ce6526b0dba6edc1442
Modified Files:
	src/sbbs3/ratelimit.hpp
Log Message:
ratelimit: use pthread_mutex_t instead of std::mutex (issue #1089)

The std::mutex added in e57ac918b ("Mutex-protect the map") carries the same
latent crash that filterfile.hpp hit: std::mutex/std::lock_guard crash in
MSVCP140.dll with older MSVC++ runtime libraries (issue #1089). Apply the same
remedy used for filterfile.hpp in fb6c6aadd: an explicitly-initialized
pthread_mutex_t (init in constructor, destroy in destructor), explicit
lock/unlock (each method restructured to a single return), and deleted
copy/assignment.

Co-Authored-By: Claude Opus 4.7 (1M context) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

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