theSq3Lite 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib - theATL
c - tcl - atl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches
Sq3Lite_Setup_libsq3lite_C_API

META - Setup und Cleanup the Meta Library pysq3liteMore...

+ Collaboration diagram for Sq3Lite_Setup_libsq3lite_C_API:

Functions

void Sq3Setup (void)
 setup pysq3lite internal memory …
 
void Sq3Cleanup (void)
 cleanup pysq3lite internal memory …
 

Detailed Description

META - Setup und Cleanup the Meta Library pysq3lite

For details about Setup and Cleanup usage refer to MkKernel_Setup_libmkkernel_C_API

Function Documentation

◆ Sq3Cleanup()

void Sq3Cleanup ( void )

cleanup pysq3lite 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

◆ Sq3Setup()

void Sq3Setup ( void )

setup pysq3lite 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: