VirtualBox

Changeset 53525 in vbox


Ignore:
Timestamp:
Dec 12, 2014 3:32:30 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97266
Message:

iprt: added RTR3InitIsInitialized

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/initterm.h

    r48681 r53525  
    109109
    110110/**
     111 * Is IPRT succesfully initialized?
     112 *
     113 * @returns true/false.
     114 */
     115RTR3DECL(bool) RTR3InitIsInitialized(void);
     116
     117/**
    111118 * Are we running in unobtrusive mode?
    112119 * @returns true/false.
  • trunk/include/iprt/mangling.h

    r53010 r53525  
    11591159# define RTR3InitExeNoArguments                         RT_MANGLER(RTR3InitExeNoArguments)
    11601160# define RTR3InitEx                                     RT_MANGLER(RTR3InitEx)
     1161# define RTR3InitIsInitialized                          RT_MANGLER(RTR3InitIsInitialized)
    11611162# define RTR3InitIsUnobtrusive                          RT_MANGLER(RTR3InitIsUnobtrusive)
    11621163# define rtR3MemAlloc                                   RT_MANGLER(rtR3MemAlloc)
  • trunk/src/VBox/Runtime/r3/init.cpp

    r48935 r53525  
    641641}
    642642
     643
     644RTR3DECL(bool) RTR3InitIsInitialized(void)
     645{
     646    return g_cUsers >= 1 && !g_fInitializing;
     647}
     648
     649
    643650RTR3DECL(bool) RTR3InitIsUnobtrusive(void)
    644651{
    645652    return RT_BOOL(g_fInitFlags & RTR3INIT_FLAGS_UNOBTRUSIVE);
    646653}
     654
    647655
    648656#if 0 /** @todo implement RTR3Term. */
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