|
Nebula
|
#include <win32sysfunc.h>
Provides Win32 specific helper functions.
Static Public Member Functions | |
| 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 | |
Static Private Member Functions | |
| static const Core::ExitHandler * | RegisterExitHandler (const Core::ExitHandler *exitHandler) |
| register an exit handler which will be called from within Exit() | |
Static Private Attributes | |
| static bool volatile | SetupCalled = false |
| static const Core::ExitHandler * | ExitHandlers = 0 |
| static System::SystemInfo | systemInfo |
Friends | |
| class | Core::ExitHandler |
|
static |
print a message on the debug console
Put a message on the debug console.
|
static |
display an error message box
This displays a Win32 error message box and quits the program.
|
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.
|
static |
display a message box which needs to be confirmed by the user
This displays a Win32 message box.
|
staticprivate |
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).
|
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.
|
static |
sleep for a specified amount of seconds
Sleep for a specified amount of seconds, give up time slice.
|
friend |
|
staticprivate |
|
staticprivate |
|
staticprivate |