• src/xpdev/rwlockwrap.c rwlockwrap.h

    From Deuc¿@VERT to Git commit to main/sbbs/master on Thursday, January 18, 2024 00:37:39
    https://gitlab.synchro.net/main/sbbs/-/commit/43f3084984ca152e3ae48d10
    Modified Files:
    src/xpdev/rwlockwrap.c rwlockwrap.h
    Log Message:
    I guess Win32 still doesn't have stdbool.h

    ---
    þ 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 00:40:43
    https://gitlab.synchro.net/main/sbbs/-/commit/604a028db61b2de6d707a792
    Modified Files:
    src/xpdev/rwlockwrap.c rwlockwrap.h
    Log Message:
    Don't do anything (including error) for Borland C

    ---
    þ 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 00:48:52
    https://gitlab.synchro.net/main/sbbs/-/commit/a40e1e637256c093d5da9651
    Modified Files:
    src/xpdev/rwlockwrap.c rwlockwrap.h
    Log Message:
    Right, xpdev needs to scream BOOL, TRUE and FALSE.

    ---
    þ 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 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