theKernel 10.0
Loading...
Searching...
No Matches
libmkkernel::MkRuntimeS Struct Reference

The MkRuntimeS provide a per-thread environment for ccmkkernelMore...

#include <LibMkKernel_mk.h>

+ Collaboration diagram for libmkkernel::MkRuntimeS:

Public Attributes

union { 
 
   struct MkObjectS   obj 
 
super 
 is the MkRuntimeS initialized? …
 
struct MkErrorS error_mk
 default-system-error - default-error
 
struct MkErrorPanicS error_panic
 panic-system-error - panic on next error …
 
struct MkErrorPanicS error_exit
 panic-system-error - panic on next error …
 
struct MkErrorIgnoreS error_ignore
 ignore-system-error - ignore the next error …
 
struct MkErrorPrintS error_print
 ignore-system-error - print the next error into MkLogFileC
 
struct MkBuffer64S tbuf
 runtime local buffer (RLS) for misc tasks …
 
MkThreadDataS mkThreadData
 application specific thread data …
 
MK_RTEXT mkRtExt
 package specific runtime extension …
 
MK_RTEXT mkRtExtAry [MkExtension_size]
 package specific runtime extension - fast access by …
 
MkSelfIncrF fSelfIncr
 "incr" Self pointer if pointer stored INTERNAL (MkObjectHandleGet)
 
MkSelfDecrF fSelfDecr
 "decr" Self pointer if pointer stored INTERNAL (MkObjectHandleDelete)
 
bool MkSelfIncrOnCacheB
 incr refCount on self at MkSelfNew
 
struct MkTypeDefS _MkObjectC_T
 
struct MkTypeDefS _MkBufferC_T
 
struct MkTypeDefS _MkBuffer64C_T
 
struct MkTypeDefS _MkBuffer256C_T
 
struct MkTypeDefS _MkBuffer1024C_T
 
struct MkTypeDefS _MkBufferStreamC_T
 
struct MkTypeDefS _MkBufferStream16384C_T
 
struct MkTypeDefS _MkBufferStream256C_T
 
struct MkTypeDefS _MkBufferStream64C_T
 
struct MkTypeDefS _MkBufferStream1024C_T
 
struct MkTypeDefS _MkBufferListC_T
 
struct MkTypeDefS _MkLogFileC_T
 
struct MkTypeDefS _MkErrorC_T
 
struct MkTypeDefS _MkErrorDefaultC_T
 
struct MkTypeDefS _MkErrorIgnoreC_T
 
struct MkTypeDefS _MkErrorPrintC_T
 
struct MkTypeDefS _MkErrorPanicC_T
 
struct MkTypeDefS _MkErrorExitC_T
 
struct MkTypeDefS _MkExtensionC_T
 
struct MkTypeDefS _MkErrExtC_T
 
struct MkTypeDefS _MkRtExtC_T
 
struct MkTypeDefS _MkRuntimeC_T
 
struct MkTypeS _MkTypeC_TT
 
struct MkTypeS _MkTypeDefC_TT
 
MK_BINB private_variables [12986]
 
runtime-configuration

This is the global per-thread-configuration data, the "pIoStartServer" will use this data for setup the MqSysServerThreadMainS for a new thread.

bool isSilent
 write (false) or don't write (true) any message to MkLogFileC (default: stderr) (default: false) …
 
bool noDeco
 do not use decoration to generate log messages (default: use decoration) …
 
MK_I32 debug
 set the debug-level of the context … Valid values are 0 <= debug-level <= 9 using 0 for no-debug and 9 for maximum-debug. (default: 0)
 
MkLogDataS log
 struct to hold the mkrt-logging-data
 

Detailed Description

The MkRuntimeS provide a per-thread environment for ccmkkernel

Definition at line 12065 of file LibMkKernel_mk.h.

Member Data Documentation

◆ _MkBuffer1024C_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkBuffer1024C_T

Definition at line 12170 of file LibMkKernel_mk.h.

◆ _MkBuffer256C_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkBuffer256C_T

Definition at line 12169 of file LibMkKernel_mk.h.

◆ _MkBuffer64C_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkBuffer64C_T

Definition at line 12168 of file LibMkKernel_mk.h.

◆ _MkBufferC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkBufferC_T

Definition at line 12167 of file LibMkKernel_mk.h.

◆ _MkBufferListC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkBufferListC_T

Definition at line 12176 of file LibMkKernel_mk.h.

◆ _MkBufferStream1024C_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkBufferStream1024C_T

Definition at line 12175 of file LibMkKernel_mk.h.

◆ _MkBufferStream16384C_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkBufferStream16384C_T

Definition at line 12172 of file LibMkKernel_mk.h.

◆ _MkBufferStream256C_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkBufferStream256C_T

Definition at line 12173 of file LibMkKernel_mk.h.

◆ _MkBufferStream64C_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkBufferStream64C_T

Definition at line 12174 of file LibMkKernel_mk.h.

◆ _MkBufferStreamC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkBufferStreamC_T

Definition at line 12171 of file LibMkKernel_mk.h.

◆ _MkErrExtC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkErrExtC_T

Definition at line 12185 of file LibMkKernel_mk.h.

◆ _MkErrorC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkErrorC_T

Definition at line 12178 of file LibMkKernel_mk.h.

◆ _MkErrorDefaultC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkErrorDefaultC_T

Definition at line 12179 of file LibMkKernel_mk.h.

◆ _MkErrorExitC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkErrorExitC_T

Definition at line 12183 of file LibMkKernel_mk.h.

◆ _MkErrorIgnoreC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkErrorIgnoreC_T

Definition at line 12180 of file LibMkKernel_mk.h.

◆ _MkErrorPanicC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkErrorPanicC_T

Definition at line 12182 of file LibMkKernel_mk.h.

◆ _MkErrorPrintC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkErrorPrintC_T

Definition at line 12181 of file LibMkKernel_mk.h.

◆ _MkExtensionC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkExtensionC_T

Definition at line 12184 of file LibMkKernel_mk.h.

◆ _MkLogFileC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkLogFileC_T

Definition at line 12177 of file LibMkKernel_mk.h.

◆ _MkObjectC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkObjectC_T

Definition at line 12166 of file LibMkKernel_mk.h.

◆ _MkRtExtC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkRtExtC_T

Definition at line 12186 of file LibMkKernel_mk.h.

◆ _MkRuntimeC_T

struct MkTypeDefS libmkkernel::MkRuntimeS::_MkRuntimeC_T

Definition at line 12187 of file LibMkKernel_mk.h.

◆ _MkTypeC_TT

struct MkTypeS libmkkernel::MkRuntimeS::_MkTypeC_TT

Definition at line 12188 of file LibMkKernel_mk.h.

◆ _MkTypeDefC_TT

struct MkTypeS libmkkernel::MkRuntimeS::_MkTypeDefC_TT

Definition at line 12189 of file LibMkKernel_mk.h.

◆ debug

MK_I32 libmkkernel::MkRuntimeS::debug

set the debug-level of the context … Valid values are 0 <= debug-level <= 9 using 0 for no-debug and 9 for maximum-debug. (default: 0)

Definition at line 12126 of file LibMkKernel_mk.h.

◆ error_exit

struct MkErrorPanicS libmkkernel::MkRuntimeS::error_exit

panic-system-error - panic on next error …

If the panic-system-error is used as the format-obj of an error-message, the text is formated as usual, but the default-error is not set, instead a MkPanicVL is called and the application terminates.

MkErrorPANIC - usage

Set the MkErrorS::format_of_error attribute to PANIC. The next error-message will be formated as usual and than be reported using MkPanicVL. With MkPanicVL the error will be printed to MkLogFileC (default: stderr) and the application will abort.

Returns
the default-error with MkErrorS::format_of_error attribute set
See also
ErrorDEFAULT, ErrorPRINT, ErrorIGNORE, MkErrorPANIC, RMkNsRT{ErrorEXIT}

Definition at line 12098 of file LibMkKernel_mk.h.

◆ error_ignore

struct MkErrorIgnoreS libmkkernel::MkRuntimeS::error_ignore

ignore-system-error - ignore the next error …

The next error will be ignored, no formatting will be performed and the the default-error will not be modified.

MkErrorIGNORE - usage

There are two functions to suppress an error: MkErrorIGNORE and MkErrorNoRaise.

MkErrorIGNORE
Set the MkErrorS::format_of_error attribute to IGNORE. The next error will be ignored, no formatting will be performed and the the default-error will not be modified.
MkErrorNoRaise
Set the MkErrorS::noRaise attribute to TRUE. The next error will be set as usual but not raised. This is usefull to set an error and later append additional information to the error. Final the error have to be raised with MkErrorRaise.
Returns
the default-error with MkErrorS::format_of_error attribute set
See also
ErrorDEFAULT, ErrorPRINT, ErrorIGNORE, MkErrorPANIC, RMkNsRT{ErrorEXIT}

Definition at line 12101 of file LibMkKernel_mk.h.

◆ error_mk

struct MkErrorS libmkkernel::MkRuntimeS::error_mk

default-system-error - default-error

The default-error is defined once per runtime and is used as only-valid-source of an MkErrorC in a thread or process.

See also
ErrorFORMAT, ErrorPRINT, ErrorIGNORE, MkErrorPANIC, RMkNsRT{ErrorEXIT}

Definition at line 12092 of file LibMkKernel_mk.h.

◆ error_panic

struct MkErrorPanicS libmkkernel::MkRuntimeS::error_panic

panic-system-error - panic on next error …

If the panic-system-error is used as the format-obj of an error-message, the text is formated as usual, but the default-error is not set, instead a MkPanicVL is called and the application terminates.

MkErrorPANIC - usage

Set the MkErrorS::format_of_error attribute to PANIC. The next error-message will be formated as usual and than be reported using MkPanicVL. With MkPanicVL the error will be printed to MkLogFileC (default: stderr) and the application will abort.

Returns
the default-error with MkErrorS::format_of_error attribute set
See also
ErrorDEFAULT, ErrorPRINT, ErrorIGNORE, MkErrorPANIC, RMkNsRT{ErrorEXIT}

Definition at line 12095 of file LibMkKernel_mk.h.

◆ error_print

struct MkErrorPrintS libmkkernel::MkRuntimeS::error_print

ignore-system-error - print the next error into MkLogFileC

The next error-message will be formated as usual and than be reported using MkLogVL. The default-error will not be modified.

MkErrorPRINT - usage

Set the MkErrorS::format_of_error attribute to PRINT.

Returns
the default-error with MkErrorS::format_of_error attribute set
See also
ErrorDEFAULT, ErrorPRINT, ErrorIGNORE, MkErrorPANIC, RMkNsRT{ErrorEXIT}

Definition at line 12104 of file LibMkKernel_mk.h.

◆ fSelfDecr

MkSelfDecrF libmkkernel::MkRuntimeS::fSelfDecr

"decr" Self pointer if pointer stored INTERNAL (MkObjectHandleDelete)

Definition at line 12148 of file LibMkKernel_mk.h.

◆ fSelfIncr

MkSelfIncrF libmkkernel::MkRuntimeS::fSelfIncr

"incr" Self pointer if pointer stored INTERNAL (MkObjectHandleGet)

Definition at line 12145 of file LibMkKernel_mk.h.

◆ isSilent

bool libmkkernel::MkRuntimeS::isSilent

write (false) or don't write (true) any message to MkLogFileC (default: stderr) (default: false) …

Definition at line 12115 of file LibMkKernel_mk.h.

◆ log

MkLogDataS libmkkernel::MkRuntimeS::log

struct to hold the mkrt-logging-data

Definition at line 12129 of file LibMkKernel_mk.h.

◆ mkRtExt

MK_RTEXT libmkkernel::MkRuntimeS::mkRtExt

package specific runtime extension …

Definition at line 12140 of file LibMkKernel_mk.h.

◆ mkRtExtAry

MK_RTEXT libmkkernel::MkRuntimeS::mkRtExtAry[MkExtension_size]

package specific runtime extension - fast access by …

Definition at line 12142 of file LibMkKernel_mk.h.

◆ MkSelfIncrOnCacheB

bool libmkkernel::MkRuntimeS::MkSelfIncrOnCacheB

incr refCount on self at MkSelfNew

Some Target-Programming-Language (TPL) (e.g. Python) return a new instance with refCount=1, which causes problems in MkSelfNew.

Now there is a discrepancy in the refCount between the self of MkSelfGet and the self of MkSelfCreate.

Note
The MkRuntimeS::fSelfIncr must be set for this.

Definition at line 12159 of file LibMkKernel_mk.h.

◆ mkThreadData

MkThreadDataS libmkkernel::MkRuntimeS::mkThreadData

application specific thread data …

Definition at line 12137 of file LibMkKernel_mk.h.

◆ noDeco

bool libmkkernel::MkRuntimeS::noDeco

do not use decoration to generate log messages (default: use decoration) …

Definition at line 12118 of file LibMkKernel_mk.h.

◆ obj

struct MkObjectS libmkkernel::MkRuntimeS::obj

Definition at line 12086 of file LibMkKernel_mk.h.

◆ private_variables

MK_BINB libmkkernel::MkRuntimeS::private_variables[12986]

Definition at line 12194 of file LibMkKernel_mk.h.

◆ [union]

union { ... } libmkkernel::MkRuntimeS::super

is the MkRuntimeS initialized? …

On "smart" systems like "csharp"… threads are created "on-the-fly" not only on user-demand… The problem is the "cleanup" code from the garbage-collection is controlled by "csharp" and sometimes "csharp" choose a new thread for this task. a "new" thread start with an empty MkRuntimeS… we need to handle this.

By default the MkSetup will initialize the MkRuntimeS but in addition the MkRtSetup_NULL_RT macro will use the MkRT macro to perform the initialization.

◆ tbuf

struct MkBuffer64S libmkkernel::MkRuntimeS::tbuf

runtime local buffer (RLS) for misc tasks …

Definition at line 12134 of file LibMkKernel_mk.h.


The documentation for this struct was generated from the following file: