#include <gxPlatformHelper.h>
Public Member Functions | |
gxPlatformHelper () | |
virtual | ~gxPlatformHelper () |
Static Public Member Functions | |
static int | newMutex (void **mutex) |
Create a new mutex (or platform specific alternative) and return as a void pointer. | |
static int | deleteMutex (void *mutex) |
static int | lockMutex (void *mutex) |
static int | unlockMutex (void *mutex) |
static int | newEvent (void **event) |
static int | deleteEvent (void *event) |
static int | signalEvent (void *event) |
static int | waitForEvent (void *event, long time) |
static std::string | getModuleFileName () |
static std::string | getAppDataFolder () |
static int | ensureFolderExists (gxPath &folderPath) |
verify that the folder exists - if not create it, including any intermediate folders that may also be missing |
Most methods return a numeric result, typedef'd as gxPlatformHelper::int. For all platforms, a result of 0 means success, and a non-zero value means that some type of error occurred.
Acknowledgements:
|
|
|
|
|
|
|
|
|
verify that the folder exists - if not create it, including any intermediate folders that may also be missing
|
|
|
|
|
|
|
|
|
|
Create a new mutex (or platform specific alternative) and return as a void pointer. The returned value should be used only by deleteMutex, lockMutex or unlockMutex methods of this class. Implementation note: On MS Windows, this object is actually a CRITICAL_SECTION . |
|
|
|
|
|
|