Subj : src/xpdev/rwlockwrap.c rwlockwrap.h To : Git commit to main/sbbs/master From : Deucе Date : Thu Jan 18 2024 17:05:50 https://gitlab.synchro.net/main/sbbs/-/commit/514480151f5e2d1093ed3418 Modified Files: src/xpdev/rwlockwrap.c rwlockwrap.h Log Message: Add a pair of condition variables to help avoid spinning. Instead of tight loops with 1ms Sleep()s in them, add events for zero readers and zero writers that we can wait for instead. Unfortunately, since Events aren't interlocked with a critical section like condition variables are with mutexes in pthreads, we can't rely on this for race-free code, so for read locks, we still may spin under write pressure. --- SBBSecho 3.20-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .