VirtualBox

Changeset 96442 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Aug 23, 2022 2:12:35 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153272
Message:

IPRT: Split out the public init data into separate files and made it possible to check if IPRT is initialized w/o dragging in the init code. Added tweak to stream.cpp so it'll work w/o IPRT init in debug builds. bugref:10261

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

Legend:

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

    r96407 r96442  
    6666#endif /* IN_RING0 */
    6767
     68#ifdef IN_RING3
     69
     70extern DECL_HIDDEN_DATA(int32_t volatile)   g_crtR3Users;
     71extern DECL_HIDDEN_DATA(bool volatile)      g_frtR3Initializing;
     72extern DECL_HIDDEN_DATA(bool volatile)      g_frtAtExitCalled;
     73
     74/**
     75 * Internal version of RTR3InitIsInitialized.
     76 */
     77DECLINLINE(bool) rtInitIsInitialized(void)
     78{
     79    return g_crtR3Users >= 1 && !g_frtR3Initializing;
     80}
     81
     82#endif
     83
    6884RT_C_DECLS_END
    6985
  • trunk/src/VBox/Runtime/include/internal/process.h

    r96407 r96442  
    5050extern DECL_HIDDEN_DATA(char)           g_szrtProcExePath[RTPATH_MAX];
    5151extern DECL_HIDDEN_DATA(size_t)         g_cchrtProcExePath;
    52 extern DECL_HIDDEN_DATA(size_t)         g_cchrtProcDir;
     52extern DECL_HIDDEN_DATA(size_t)         g_cchrtProcExeDir;
    5353extern DECL_HIDDEN_DATA(size_t)         g_offrtProcName;
    54 extern DECL_HIDDEN_DATA(bool volatile)  g_frtAtExitCalled;
    5554
    5655/**
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