#include <win32sysfunc.h>
Provides Win32 specific helper functions.
- Copyright
- (C) 2006 Radon Labs GmbH (C) 2013-2020 Individual contributors, see AUTHORS file
|
static void | Setup () |
| setup lowlevel static objects (must be called before spawning any threads)
|
|
static void | Exit (int exitCode) |
| exit process, and to proper cleanup, memleak reporting, etc...
|
|
static void | Error (const char *error) |
| display an error message box
|
|
static void | MessageBox (const char *msg) |
| display a message box which needs to be confirmed by the user
|
|
static void | DebugOut (const char *msg) |
| print a message on the debug console
|
|
static void | Sleep (double sec) |
| sleep for a specified amount of seconds
|
|
◆ DebugOut()
void Win32::SysFunc::DebugOut |
( |
const char * | msg | ) |
|
|
static |
print a message on the debug console
Put a message on the debug console.
◆ Error()
void Win32::SysFunc::Error |
( |
const char * | error | ) |
|
|
static |
display an error message box
This displays a Win32 error message box and quits the program.
◆ Exit()
void Win32::SysFunc::Exit |
( |
int | exitCode | ) |
|
|
static |
exit process, and to proper cleanup, memleak reporting, etc...
This method is called by Application::Exit(), or otherwise must be called right before the end of the programs main() function.
The method will properly shutdown the Nebula runtime environment, and report refcounting and memory leaks (debug builds only). This method will not return.
◆ MessageBox()
void Win32::SysFunc::MessageBox |
( |
const char * | msg | ) |
|
|
static |
display a message box which needs to be confirmed by the user
This displays a Win32 message box.
◆ RegisterExitHandler()
register an exit handler which will be called from within Exit()
Register a new exit handler.
This method is called at startup time from the constructor of static exit handler objects. This is the only supported way to register exit handlers. The method will return a pointer to the next exit handler in the forward linked list (or 0 if this is the first exit handler).
◆ Setup()
void Win32::SysFunc::Setup |
( |
| ) |
|
|
static |
setup lowlevel static objects (must be called before spawning any threads)
This method must be called at application start before any threads are spawned.
It is used to setup static objects beforehand (i.e. private heaps of various utility classes). Doing this eliminates the need for fine-grained locking in the affected classes.
◆ Sleep()
void Win32::SysFunc::Sleep |
( |
double | sec | ) |
|
|
static |
sleep for a specified amount of seconds
Sleep for a specified amount of seconds, give up time slice.
◆ Core::ExitHandler
◆ ExitHandlers
◆ SetupCalled
bool volatile Win32::SysFunc::SetupCalled = false |
|
staticprivate |
◆ systemInfo
The documentation for this class was generated from the following files: