• src/xpdev/threadwrap.h

    From deuce@VERT to CVS commit on Thu Oct 18 11:13:47 2012
    src/xpdev threadwrap.h 1.40 1.41
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv19810

    Modified Files:
    threadwrap.h
    Log Message:
    Add support for pthread_setname_np() on systems with GLibC 2.12 or higher.



    ---
    þ Synchrone
  • From deuce@VERT to CVS commit on Thu Oct 18 11:14:38 2012
    src/xpdev threadwrap.h 1.41 1.42
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv19862

    Modified Files:
    threadwrap.h
    Log Message:
    Include thread names for release builds too.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchr
  • From deuce@VERT to CVS commit on Thu Oct 18 11:31:42 2012
    src/xpdev threadwrap.h 1.42 1.43
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv20396

    Modified Files:
    threadwrap.h
    Log Message:
    There is no #elsif



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synch
  • From deuce@VERT to CVS commit on Thu Oct 18 11:33:35 2012
    src/xpdev threadwrap.h 1.43 1.44
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv20469

    Modified Files:
    threadwrap.h
    Log Message:
    Ahh, it's spelt #elif.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.s
  • From deuce@VERT to CVS commit on Fri Oct 19 14:12:28 2012
    src/xpdev threadwrap.h 1.44 1.45
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv29855

    Modified Files:
    threadwrap.h
    Log Message:
    Correctly handle GLibC versions < 2.12



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ
  • From rswindell@VERT to CVS commit on Tue Jan 7 16:24:21 2014
    src/xpdev threadwrap.h 1.45 1.46
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv9153

    Modified Files:
    threadwrap.h
    Log Message:
    Define protected_int_value() macros to perform a thread-safe read of the current protected-interger value.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Tue Jul 23 21:15:24 2019
    src/xpdev threadwrap.h 1.51 1.52
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv9501

    Modified Files:
    threadwrap.h
    Log Message:
    Address Windows build warning:
    InterlockedCompareExchange() expects a long*, not a uint32_t*.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wed Feb 17 23:25:51 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/b4e6d685f82a804c779e0df6
    Modified Files:
    src/xpdev/threadwrap.h
    Log Message:
    #define protected_*_value(val) atomic_load(&val)
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sat Feb 20 17:31:34 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/f6b1317888c77f7b46dbce83
    Modified Files:
    src/xpdev/threadwrap.h
    Log Message:
    Use parens for Win32 protected_*int macro args

    for better errors/warnings from the compiler when misued.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Mon Feb 22 17:59:04 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/474fa66ed8abaeadbd1e9815
    Modified Files:
    src/xpdev/threadwrap.h
    Log Message:
    Gotta define __STDC_NO_ATOMICS__ for MSVC

    Even though https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-160 says they define it for C compiles, apparently they don't bother for C++. <shrug>
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Tue Mar 2 09:54:52 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/f3219fe50193f0401dec7f51
    Modified Files:
    src/xpdev/threadwrap.h
    Log Message:
    Re-enable atomics on FreeBSD :|

    The various __GNUC__ macros are defined in other compilers and
    indicate support for a C language standard and can't be used to
    detect if gcc the compiler is being used.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sat Feb 19 14:03:13 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/3d0d525c7da0d33b4f53547b
    Modified Files:
    src/xpdev/threadwrap.h
    Log Message:
    Use MinGW32 types for pthread_t and pthread_mutex_t

    uintptr_t should be the same as a DWORD on Win32,
    and CRITICAL_SECTION can be stored in an inptr_t as well.

    This should work fine, and allow more build environments to be happy.
    This is generally caused by new C++ standards having thread support
    in the standard library, so wrappers getting pushed deeper in.

    At some pointer, this should be redone with standard threads, but
    now is not the time.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Feb 20 16:53:52 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/b3c536e4e065801ed59d9c42
    Modified Files:
    src/xpdev/threadwrap.h
    Log Message:
    pthread_mutex_t is a CRITICAL_SECTION (not a pointer) on Win32

    Partially revert Deuce's commit b4bc9c9759e6f34c272501e024

    This explains the EAccessViolation (stack corruption during sbbs startup) that sysops have reported when using the latest nightly builds.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net