• src/xpdev/rwlockwrap.c

    From Deuc¿@VERT to Git commit to main/sbbs/master on Mon Jan 13 14:00:39 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/1220c4b50e7c0d989defac14
    Modified Files:
    src/xpdev/rwlockwrap.c
    Log Message:
    Don't leve the wlk critical section on wrlock success.

    That *is* the write lock!
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Wed Apr 15 11:48:26 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/819c4e20927f1b70020ad5d4
    Modified Files:
    src/xpdev/rwlockwrap.c
    Log Message:
    Fix unlikely Win32 rwlock issue.

    If WaitForSingleObject() fails, the loop waiting for readers to
    zero would continue without wlk held, meaning it would be possible
    for either wlk to be left without entering, or two writers to hold
    the lock at the same time, depending on the value of lock->readers
    at the time of the failure.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net