ADTF  3.18.4
workspace/conan/dev_essential/1.3.4/dw/stable/package/37682420cd166e229516a41c8d6a139a0b13e1e1/include/a_util/system/system.h File Reference

Public API for system classes and functions. More...

Go to the source code of this file.

Classes

class  HighResSchedulingSupport
 RAII class for high resolution scheduling support from the OS. More...
 

Namespaces

 a_util
 Serves as the root component, with common functionality documented in core functionality.
 
 a_util::system
 Serves as component for portable OS (Windows, Linux, ...) functionality.
 

Functions

std::string getCurrentUserName ()
 Get the current user name. More...
 
std::string getHostname ()
 Get the current hostname. More...
 
a_util::filesystem::Path getExecutablePath ()
 Get full path to the executable that started the calling system process. More...
 
int getLastSystemError ()
 Get the last system error (platform specific, errno or GetLastError) More...
 
void resetLastSystemError ()
 Reset last system error to its initial value.
 
std::string formatSystemError (int system_error_code)
 Get the description message associated with the given system error code. More...
 
void sleepMilliseconds (std::uint32_t ms)
 Yield calling thread to the operating system, scheduled to awake after a period of milliseconds. More...
 
void sleepMicroseconds (std::uint64_t us)
 Yields calling thread to the operating system, scheduled to awake after a period of microseconds. More...
 
timestamp_t getCurrentMilliseconds ()
 Get the current milliseconds passed since system start. More...
 
timestamp_t getCurrentMicroseconds ()
 Get the current microseconds passed since the first invocation (or -1 if not available) More...
 

Detailed Description

Public API for system classes and functions.

Definition in file workspace/conan/dev_essential/1.3.4/dw/stable/package/37682420cd166e229516a41c8d6a139a0b13e1e1/include/a_util/system/system.h.