• src/xpdev/rwlockwrap.c rwlockwrap.h

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu Jan 18 00:37:39 2024
    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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu Jan 18 00:40:43 2024
    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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu Jan 18 00:48:52 2024
    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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu Jan 18 09:53:59 2024
    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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu Jan 18 14:18:10 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/4c803cd4e774cc211ba18056
    Modified Files:
    src/xpdev/rwlockwrap.c rwlockwrap.h
    Log Message:
    Fix typo destory -> destroy
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu Jan 18 17:05:50 2024
    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)