VirtualBox

Changeset 36363 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 23, 2011 10:55:39 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70706
Message:

IPRT: Added g_frtAtExitCalled.

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/process.h

    r28800 r36363  
    3939extern size_t           g_cchrtProcDir;
    4040extern size_t           g_offrtProcName;
     41extern bool volatile    g_frtAtExitCalled;
    4142
    4243/**
  • trunk/src/VBox/Runtime/r3/init.cpp

    r33806 r36363  
    114114RTPROCPRIORITY g_enmProcessPriority = RTPROCPRIORITY_DEFAULT;
    115115
     116/**
     117 * Set if the atexit callback has been called, i.e. indicating
     118 * that the process is terminating.
     119 */
     120bool volatile   g_frtAtExitCalled = false;
     121
    116122#ifdef IPRT_WITH_ALIGNMENT_CHECKS
    117123/**
     
    131137static void rtR3ExitCallback(void)
    132138{
     139    ASMAtomicWriteBool(&g_frtAtExitCalled, true);
     140
    133141    if (g_cUsers > 0)
    134142    {
Note: See TracChangeset for help on using the changeset viewer.

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