theLink 10.0
Loading...
Searching...
No Matches
LibMqMsgque_cs.c File Reference

tag: nhi1-release-250425 More...

#include "LibMqMsgque_cs.h"
+ Include dependency graph for LibMqMsgque_cs.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "LibMqMsgque_cs.c"
 

Functions

MK_PTR MqCsContextTypeCreate_RT (MK_RT mkrt, MK_STRN ident, MqCreateF fChildCreate, MqDeleteF fChildDelete, MqCreateF fParentCreate, MqDeleteF fParentDelete, MqExitF MqProcessExitCB, MqExitF MqThreadExitCB, MqWaitForPipeF MqWaitForPipeCB)
 
void MqCsTypeUpdate_RT (MK_RT mkrt, MqCsTypeLookupE const typeL, MkSelfCreateF const selfCTOR, MkSelfUnlinkF const selfUnlink)
 
void MqCsInit (MqSysServerThreadF SysServerThread, MkSysExitF SysExit)
 

Variables

bool MqRuntimeThreadPoolUse = true
 

Detailed Description

tag: nhi1-release-250425

Definition in file LibMqMsgque_cs.c.

Macro Definition Documentation

◆ META_FILE_NAME

#define META_FILE_NAME   "LibMqMsgque_cs.c"

Definition at line 11 of file LibMqMsgque_cs.c.

Function Documentation

◆ MqCsContextTypeCreate_RT()

MK_PTR MqCsContextTypeCreate_RT ( MK_RT mkrt,
MK_STRN ident,
MqCreateF fChildCreate,
MqDeleteF fChildDelete,
MqCreateF fParentCreate,
MqDeleteF fParentDelete,
MqExitF MqProcessExitCB,
MqExitF MqThreadExitCB,
MqWaitForPipeF MqWaitForPipeCB )

Definition at line 20 of file LibMqMsgque_cs.c.

30 {
31 assert(ident != NULL);
34 MqContextCT->argvFix = true;
35 MqContextCT->ignoreFork = true;
36 MqContextCT->ignoreDisasterSetup = true ;
37 MqContextCT->Child.fCreate = fChildCreate;
38 MqContextCT->Child.fDelete = fChildDelete;
39 MqContextCT->Parent.fCreate = fParentCreate;
40 MqContextCT->Parent.fDelete = fParentDelete;
41 MqContextCT->MqProcessExitCB = MqProcessExitCB;
42 MqContextCT->MqThreadExitCB = MqThreadExitCB;
43 MqContextCT->MqWaitForPipeCB = MqWaitForPipeCB;
44 return MqContextCTT;
45}
#define MqRtSetup_NULL_RT
#define MkTypeDup2(...)
#define MqContextCTT
class as MkTypeS-class-type for MqContextC in the Target-Programming-Language (TPL) …
#define MqContextCT
class as MqTypeCtxS-class-type for MqContextC in the Target-Programming-Language (TPL) …
#define MqContextC_TT
class as MkTypeS-class-type, useable in a class-macro as: class##_TT …

◆ MqCsInit()

void MqCsInit ( MqSysServerThreadF SysServerThread,
MkSysExitF SysExit )

Definition at line 70 of file LibMqMsgque_cs.c.

73 {
74 if (SysServerThread) MqLal.MqSysServerThreadCB = SysServerThread;
75 if (SysExit) MkLal.MkSysExitCB = SysExit;
76}
struct MkLalS MkLal
struct MqLalS MqLal
Language Abstraction Layer in duty.
MkSysExitF MkSysExitCB
MqSysServerThreadF MqSysServerThreadCB
thread server create syscall with csmqmsgque error plugin

◆ MqCsTypeUpdate_RT()

void MqCsTypeUpdate_RT ( MK_RT mkrt,
MqCsTypeLookupE const typeL,
MkSelfCreateF const selfCTOR,
MkSelfUnlinkF const selfUnlink )

Definition at line 47 of file LibMqMsgque_cs.c.

52 {
54 MK_TYP type = NULL;
55 switch (typeL) {
56 // BEGIN-CLS - created by 'cs_PreMeta.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
57
58 case MQ_CS_TYPE_LOOKUP_FCT : type = MqFactoryC_TT ; break;
59 case MQ_CS_TYPE_LOOKUP_CTX : type = MqContextC_TT ; break;
60 case MQ_CS_TYPE_LOOKUP_DMP : type = MqDumpC_TT ; break;
61
62 // END-CLS - created by 'cs_PreMeta.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
63 default: MkPanicC_1("get invalid type enum '%d' not part of 'MqCsTypeLookupE'");
64 }
65 assert(type != NULL);
66 type->selfCreate = selfCTOR;
67 type->selfUnlink = selfUnlink;
68}
#define MkPanicC_1(message)
#define MqDumpC_TT
class as MkTypeS-class-type, useable in a class-macro as: class##_TT …
#define MqFactoryC_TT
class as MkTypeS-class-type, useable in a class-macro as: class##_TT …
MkSelfUnlinkF selfUnlink
MkSelfCreateF selfCreate