Loading...
Searching...
No Matches
MqContextC_Misc_CC_API

MqContextC - various functions to work on a contextMore...

+ Collaboration diagram for MqContextC_Misc_CC_API:

Functions

MkBufferCccmqmsgque::MqContextC::GetBuffer ()
  C++: MkBufferC* ctx.GetBuffer() C-API
get the libmqmsgque::MqContextS::ctxbuf object
 
MqContextCccmqmsgque::MqContextC::GetRoot ()
  C++: MqContextC* ctx.GetRoot() C-API
get the Root (toplevel initial context)
 
MK_STRN ccmqmsgque::MqContextC::ToString () const
  C++: MK_STRN ctx.ToString() C-API
String-Slot - returns the string representation of the inst
 
void ccmqmsgque::MqContextC::Exit (MK_STRN callfunc=__builtin_FUNCTION(), MK_STRN callfile=__builtin_FILE(), MK_I32 callline=__builtin_LINE())
  C++: ctx.Exit(MK_STRN callfunc = __builtin_FUNCTION(), MK_STRN callfile = __builtin_FILE(), MK_I32 callline = __builtin_LINE()) C-API
delete the context and exit the current process or thread …
 
void ccmqmsgque::MqContextC::ProcessEvent (MqWaitOnEventE wait=MQ_WAIT_NO, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.ProcessEvent(MqWaitOnEventE wait = MQ_WAIT_NO, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
enter the event-loop and wait for an incoming service-request. …
 

Detailed Description

MqContextC - various functions to work on a context

Function Documentation

◆ Exit()

void ccmqmsgque::MqContextC::Exit ( MK_STRN callfunc = __builtin_FUNCTION(),
MK_STRN callfile = __builtin_FILE(),
MK_I32 callline = __builtin_LINE() )
inline

C++: ctx.Exit(MK_STRN callfunc = __builtin_FUNCTION(), MK_STRN callfile = __builtin_FILE(), MK_I32 callline = __builtin_LINE()) C-API
delete the context and exit the current process or thread …

Definition at line 1131 of file MqContextC_inline_cc.hh.

1131 {
1132 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1133 MkRtSetup_X(ctx);
1134 if (callline == -1) {callline = __builtin_LINE();}
1135 if (callfile == NULL) {callfile = __builtin_FILE();}
1136 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
1137 MqExit(ctx, callfunc, callfile, callline);
1138 }
#define MK_NULL_NO
#define MK_UNUSED
#define MkRtSetup_X(x)
MQ_CTX getCTX(bool nullB=MK_NULL_NO) const
return the LibMsgqueObject from current MqContextC instance
#define MqExit(...)
+ Here is the caller graph for this function:

◆ GetBuffer()

MkBufferC * ccmqmsgque::MqContextC::GetBuffer ( )
inline

C++: MkBufferC* ctx.GetBuffer() C-API
get the libmqmsgque::MqContextS::ctxbuf object

Definition at line 1105 of file MqContextC_inline_cc.hh.

1105 {
1106 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1107 MkRtSetup_X(ctx);
1108 MK_BUF __retVal__L = MqContextGetBuffer(ctx);
1109 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
1110 }
static MkBufferC * MkBufferC_ObjNew(MK_RT const mkrt, MK_BUF hdl)
struct MkBufferS * MK_BUF
#define MK_RT_CALL
#define MqContextGetBuffer(...)

◆ GetRoot()

MqContextC * ccmqmsgque::MqContextC::GetRoot ( )
inline

C++: MqContextC* ctx.GetRoot() C-API
get the Root (toplevel initial context)

Definition at line 1113 of file MqContextC_inline_cc.hh.

1113 {
1114 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1115 MkRtSetup_X(ctx);
1116 MQ_CTX __retVal__L = MqGetRoot(ctx);
1117 return MqContextC::MqContextC_ObjNew(MK_RT_CALL __retVal__L);
1118 }
static MqContextC * MqContextC_ObjNew(MK_RT const mkrt, MQ_CTX hdl)
return MqContextC from LibMsgqueObject
struct MqContextS * MQ_CTX
class-shortcut for struct MqContextS *, all shortcut using the XX_YYY syntax (only for public API) …
MQ_CTX MqGetRoot(MQ_CTX ctx)
get the Root (toplevel initial context)

◆ ProcessEvent()

void ccmqmsgque::MqContextC::ProcessEvent ( MqWaitOnEventE wait = MQ_WAIT_NO,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.ProcessEvent(MqWaitOnEventE wait = MQ_WAIT_NO, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
enter the event-loop and wait for an incoming service-request. …

Definition at line 1141 of file MqContextC_inline_cc.hh.

1141 {
1142 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1143 MkRtSetup_X(ctx);
1144 enum MkErrorE errVal = MqProcessEvent(ctx, wait, timeout);
1145 MkErrorC_Check(ctx, errVal);
1146 }
#define MqProcessEvent(...)
+ Here is the caller graph for this function:

◆ ToString()

MK_STRN ccmqmsgque::MqContextC::ToString ( ) const
inline

C++: MK_STRN ctx.ToString() C-API
String-Slot - returns the string representation of the inst

Definition at line 1123 of file MqContextC_inline_cc.hh.

1123 {
1124 MK_UNUSED auto ctx = getCTXN(MK_NULL_NO);
1125 MkRtSetup_X(ctx);
1126 MK_STRN __retVal__L = MqContextToString(ctx);
1127 return __retVal__L;
1128 }
const MK_STRB * MK_STRN
MQ_CTXN getCTXN(bool nullB=MK_NULL_NO) const
(const) return the LibMsgqueObject from current MqContextC instance
#define MqContextToString(...)