• src/xpdev/rwlockwrap.c rwlockwrap.h

    From Deuc¿@VERT to Git commit to main/sbbs/master on Thursday, January 18, 2024 09:53:59
    https://gitlab.synchro.net/main/sbbs/-/commit/4c0a337a62cf359cf8df9959
    Modified Files:
    src/xpdev/rwlockwrap.c rwlockwrap.h
    Log Message:
    Re-enable rwlocks for Borland.

    Since we can't bool anyway, may as well.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Thursday, January 18, 2024 14:18:10
    https://gitlab.synchro.net/main/sbbs/-/commit/4c803cd4e774cc211ba18056
    Modified Files:
    src/xpdev/rwlockwrap.c rwlockwrap.h
    Log Message:
    Fix typo destory -> destroy

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Thursday, January 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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sunday, January 12, 2025 10:52:19
    https://gitlab.synchro.net/main/sbbs/-/commit/0062d82c71385236e6b2ae2e
    Modified Files:
    src/xpdev/rwlockwrap.c rwlockwrap.h
    Log Message:
    Make rwlock wrappers static inline functions instead of macros.

    This should avoid angering Coverity.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net