theConfig 10.0
Loading...
Searching...
No Matches
LcConfig_Setup_C_API

LcConfig PACKAGE - setup library and Programming-Language-Micro-Kernel (PLMK)More...

+ Collaboration diagram for LcConfig_Setup_C_API:

Typedefs

typedef void(* LcSetupThreadF) (MK_RT mkrt)
 prototype of the runtime-callback
 

Functions

void LcSetup (void)
 setup tcllcconfig internal memory …
 
void LcCleanup (void)
 cleanup tcllcconfig internal memory …
 
void LcSetupThreadCallback (LcSetupThreadF call)
 callback used to register a new runtime
 

Detailed Description

LcConfig PACKAGE - setup library and Programming-Language-Micro-Kernel (PLMK)

For details about Setup and Cleanup usage refer to MkKernel_Setup_libmkkernel_C_API

Typedef Documentation

◆ LcSetupThreadF

typedef void( * LcSetupThreadF) (MK_RT mkrt)

prototype of the runtime-callback

Definition at line 489 of file LibLcConfig_lc.h.

Function Documentation

◆ LcCleanup()

void LcCleanup ( void )

cleanup tcllcconfig internal memory …

Cleanup will only be recognized once and will be ignored if not called in the same thread as Setup. After a call to Setup the call to MkCleanup is possible again.

  1. By default, the public Cleanup with the gcc: __attribute__ ((cleanup(XXX))) is called when unloading the library.
  2. The public Cleanup is only a placeholder and should not be used, the internal Cleanup is always called, even if the public Cleanup is not called.
Note
during cleanup objects will be deleted too -> the language interpreter have to be active
+ Here is the caller graph for this function:

◆ LcSetup()

void LcSetup ( void )

setup tcllcconfig internal memory …

Setup will only be recognized once, additional call's will be ignored until a Cleanup is called.

  1. By default, the public Setup with the gcc: __attribute__ ((constructor(XXX))) is called when loading the library.
  2. If the Target-Programming-Language (TPL) supports late loading of a shared library with dlopen and additionally uses threads, a manual call to Setup very early at startup is required to enforce the correct order of type declarations.
+ Here is the caller graph for this function:

◆ LcSetupThreadCallback()

void LcSetupThreadCallback ( LcSetupThreadF call)

callback used to register a new runtime

read more at: MkRuntimeCallbackAdd