Subj : src/xpdev/rwlockwrap.c rwlockwrap.h wraptest.c To : Git commit to main/sbbs/master From : Deucе Date : Thu Jan 18 2024 09:15 am https://gitlab.synchro.net/main/sbbs/-/commit/f36ddb9f25447b01cabb5313 Modified Files: src/xpdev/rwlockwrap.c rwlockwrap.h wraptest.c Log Message: Fix rwlock_unlock() and rwlock_rdlock() recursion. It would be nice to use TLS for the recusrion counter, but on Windows, it looks like TLS in threads created after the object is created is uninitialized, so we would need some kind of thread start hook thingie which just seems like too much work. Instead, rely on the old standby single-linked list to track. .