23 #ifndef __ccxx_System_hxx 24 #define __ccxx_System_hxx 58 static void setSystemTime(
const time_ms_t& time);
76 static bool setEnvVariable(
const String& name,
const String& value);
84 static bool delEnvVariable(
const String& name);
87 static String getUserName();
93 static String getOSVersion();
96 static String getArchitecture();
99 static String getHostName();
102 static String getHomeDir();
105 static String getTempDir();
109 static inline void lockGlobalMutex()
110 { _globalLock.lock(); }
112 static inline void unlockGlobalMutex()
113 { _globalLock.unlock(); }
126 static size_t getPageSize();
129 static void roundToPageSize(
size_t& size);
132 static void printStackTrace(
uint_t maxFrames = 20);
135 static bool isPOSIX();
138 static bool isMacOSX();
141 static bool isWindows();
145 static void _getSystemInfo();
146 static Mutex _globalLock;
162 #endif // __ccxx_System_hxx
int64_t time_ms_t
A time expressed in milliseconds since the epoch (00:00:00, UTC, January 1, 1970).
Definition: Integers.h++:98
int32_t time_s_t
A time expressed in seconds since the epoch (00:00:00, UTC, January 1, 1970).
Definition: Integers.h++:85
unsigned int uint_t
An alias for unsigned int.
Definition: Integers.h++:74
A mutual-exclusion lock.
Definition: Mutex.h++:49
#define COMMONCPP_API
Definition: Common.h++:126
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
#define CCXX_COPY_DECLS(CLASS)
Inlines declarations of a copy constructor and assignment operator for the class CLASS.
Definition: Common.h++:295
Various system-level utility functions.
Definition: System.h++:41
static const String null
The null string.
Definition: String.h++:1128
Definition: AllocationMap.c++:25