Internal RaimaDB Startup API used by startup macros. More...
#include "rdmstartuptypes.h"
Functions |
|
int32_t | rdm_threadMain (int32_t(*main)(int32_t argc, const char *const *argv), int argc, const char *const *argv) |
Start the main thread and call the named main function. More... |
|
Detailed Description
Internal RaimaDB Startup API used by startup macros.
Raima Database Manager
Copyright (C) 2020 Raima Inc., All rights reserved.
Use of this software, whether in source code format, or in executable, binary object code form, is governed by the Raima LICENSE which is fully described in the LICENSE.TXT file, included within this distribution of files.
Function Documentation
rdm_threadMain()
int32_t rdm_threadMain | ( | int32_t(*)(int32_t argc, const char *const *argv) | main, |
int | argc, | ||
const char *const * | argv | ||
) |
Start the main thread and call the named main function.
This function is called directly by the statup macros (main) and takes care of setting up the main thread. Using the startup macros and this function is not required for using RaimaDB. RaimaDB uses this to be able to do required special handling for certain embedded platform.
On Linux and Unix the implementation behind this function is simply to call the named main function without any furher processing.
On Windows the implementation also checks that the ANSI Code Page is CP_UTF8. If not, then the arguments are required to only contain characters from the ASCII character set.
Other plaforms may have other steps before the named main function is called.
- Parameters
-
main The named main function that is to be called argc Argument count passed on from main argv Argument vector passed on from main