VirtualBox

Changeset 89647 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jun 13, 2021 9:37:44 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145092
Message:

IPRT/thread-posix.cpp: SIGRTMAX is defined to a function call in more recent glibc versions, so avoid using it in a 'static const' table or will end up with the compiler serializing the initialization and the GA build failing. bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/thread-posix.cpp

    r89646 r89647  
    9191/** The signal we use for poking threads.
    9292 * This is set to -1 if no available signal was found. */
    93 static int              g_iSigPokeThread = -1;
     93static int volatile     g_iSigPokeThread = -1;
    9494#endif
    9595
     
    167167     * Note! Avoid SIGRTMIN thru SIGRTMIN+2 because of LinuxThreads.
    168168     */
    169     static const int s_aiSigCandidates[] =
     169# ifndef RT_OS_LINUX /* glibc defines SIGRTMAX to __libc_current_sigrtmax(), causing compiler to deploy serialization here. */
     170    static
     171# endif
     172    const int s_aiSigCandidates[] =
    170173    {
    171174# ifdef SIGRTMAX
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette