Changeset 36549 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Apr 5, 2011 9:28:24 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70979
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/init.cpp
r36363 r36549 75 75 *******************************************************************************/ 76 76 /** The number of calls to RTR3Init. */ 77 static int32_t volatile g_cUsers = 0;77 static int32_t volatile g_cUsers = 0; 78 78 /** Whether we're currently initializing the IPRT. */ 79 static bool volatile g_fInitializing = false;79 static bool volatile g_fInitializing = false; 80 80 81 81 /** The process path. 82 82 * This is used by RTPathExecDir and RTProcGetExecutablePath and set by rtProcInitName. */ 83 charg_szrtProcExePath[RTPATH_MAX];83 DECLHIDDEN(char) g_szrtProcExePath[RTPATH_MAX]; 84 84 /** The length of g_szrtProcExePath. */ 85 size_tg_cchrtProcExePath;85 DECLHIDDEN(size_t) g_cchrtProcExePath; 86 86 /** The length of directory path component of g_szrtProcExePath. */ 87 size_tg_cchrtProcDir;87 DECLHIDDEN(size_t) g_cchrtProcDir; 88 88 /** The offset of the process name into g_szrtProcExePath. */ 89 size_tg_offrtProcName;89 DECLHIDDEN(size_t) g_offrtProcName; 90 90 91 91 /** 92 92 * Program start nanosecond TS. 93 93 */ 94 uint64_tg_u64ProgramStartNanoTS;94 DECLHIDDEN(uint64_t) g_u64ProgramStartNanoTS; 95 95 96 96 /** 97 97 * Program start microsecond TS. 98 98 */ 99 uint64_tg_u64ProgramStartMicroTS;99 DECLHIDDEN(uint64_t) g_u64ProgramStartMicroTS; 100 100 101 101 /** 102 102 * Program start millisecond TS. 103 103 */ 104 uint64_tg_u64ProgramStartMilliTS;104 DECLHIDDEN(uint64_t) g_u64ProgramStartMilliTS; 105 105 106 106 /** 107 107 * The process identifier of the running process. 108 108 */ 109 RTPROCESSg_ProcessSelf = NIL_RTPROCESS;109 DECLHIDDEN(RTPROCESS) g_ProcessSelf = NIL_RTPROCESS; 110 110 111 111 /** 112 112 * The current process priority. 113 113 */ 114 RTPROCPRIORITYg_enmProcessPriority = RTPROCPRIORITY_DEFAULT;115 116 /** 117 * Set if the atexit callback has been called, i.e. indicating 118 * that the process is terminating. 119 */ 120 bool volatileg_frtAtExitCalled = false;114 DECLHIDDEN(RTPROCPRIORITY) g_enmProcessPriority = RTPROCPRIORITY_DEFAULT; 115 116 /** 117 * Set if the atexit callback has been called, i.e. indicating 118 * that the process is terminating. 119 */ 120 DECLHIDDEN(bool volatile) g_frtAtExitCalled = false; 121 121 122 122 #ifdef IPRT_WITH_ALIGNMENT_CHECKS
Note:
See TracChangeset
for help on using the changeset viewer.