theLink 10.0
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_I32 ccmqmsgque::MqContextC::Exit (MK_STRN callfunc=__builtin_FUNCTION(), MK_STRN callfile=__builtin_FILE(), MK_I32 callline=__builtin_LINE())
  C++: MK_I32 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()

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

C++: MK_I32 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 1002 of file MqContextC_inline_cc.hh.

1002 {
1003 MK_UNUSED auto ctx = getCTX__null_allow();
1004 if (callline == -1) {callline = __builtin_LINE();}
1005 if (callfile == NULL) {callfile = __builtin_FILE();}
1006 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
1007 MK_I32 __retVal__L = MqExit(ctx, callfunc, callfile, callline);
1008 return __retVal__L;
1009 }
#define MK_UNUSED
signed int MK_I32
MQ_CTX getCTX__null_allow() 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 984 of file MqContextC_inline_cc.hh.

984 {
985 MK_UNUSED auto ctx = getCTX();
986 MK_BUF __retVal__L = MqContextGetBuffer(ctx);
987 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
988 }
static MkBufferC * MkBufferC_ObjNew(MK_RT_ARGS MK_BUF hdl)
struct MkBufferS * MK_BUF
#define MK_RT_CALL
MQ_CTX getCTX() const
return the LibMsgqueObject from current MqContextC instance
#define MqContextGetBuffer(...)

◆ GetRoot()

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

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

Definition at line 991 of file MqContextC_inline_cc.hh.

991 {
992 MK_UNUSED auto ctx = getCTX();
993 MQ_CTX __retVal__L = MqGetRoot(ctx);
994 return MqContextC::MqContextC_ObjNew(MK_RT_CALL __retVal__L);
995 }
static MqContextC * MqContextC_ObjNew(MK_RT_ARGS 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) …
static 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 1012 of file MqContextC_inline_cc.hh.

1012 {
1013 MK_UNUSED auto ctx = getCTX();
1014 enum MkErrorE errVal = MqProcessEvent(ctx, wait, timeout);
1015 MkErrorC_Check(ctx, errVal);
1016 }
#define MqProcessEvent(...)
+ Here is the caller graph for this function: