theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Misc_ATL_API

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

+ Collaboration diagram for MqContextC_Misc_ATL_API:

Functions

static OT_ProcRet atlmqmsgque_MqContextC_GetBuffer (MqContextC_ARGS)
  Atl: MkBufferC [MqContextC::GetBuffer $ctx] C-API
get the MqContextS::ctxbuf object
 
static OT_ProcRet atlmqmsgque_MqContextC_GetRoot (MqContextC_ARGS)
  Atl: MqContextC [MqContextC::GetRoot $ctx] C-API
get the Root (toplevel initial context)
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet atlmqmsgque_MqContextC_ToString (MqContextC_ARGS)
 
static OT_ProcRet atlmqmsgque_MqContextC_Exit (MqContextC_ARGS)
  Atl: int32 [MqContextC::Exit $ctx ?callfunc:string="MK_NULL"? ?callfile:string="MK_NULL"? ?callline:int32=-1?] C-API
delete the context and exit the current process or thread …
 
static OT_ProcRet atlmqmsgque_MqContextC_ProcessEvent (MqContextC_ARGS)
  Atl: MqContextC::ProcessEvent $ctx ?wait:MqWaitOnEventE=NO? ?timeout:MkTimeoutE|int32=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

◆ atlmqmsgque_MqContextC_Exit()

static OT_ProcRet atlmqmsgque_MqContextC_Exit ( MqContextC_ARGS )
static

Atl: int32 [MqContextC::Exit $ctx ?callfunc:string="MK_NULL"? ?callfile:string="MK_NULL"? ?callline:int32=-1?] C-API
delete the context and exit the current process or thread …

Definition at line 1872 of file MqContextC_atl.c.

1872 {
1875 MK_STRN callfunc = NULL;
1877 MK_STRN callfile = NULL;
1879 MK_I32 callline = -1;
1882 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
1883 if (MkSysStringIsNULL(callfile)) {callfile = OT_GET_CALL_FILE;}
1884 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1885 OT_retObj_SET_I32(MqExit (hdl, callfunc, callfile, callline));
1886 goto end;
1887 error:
1889 end:
1892}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_NI4(val)
#define OT_retObj_SET_Error
#define OT_GET_CALL_LINE
#define OT_FRAME_CLEANUP
#define OT_retObj_SET_I32(nat)
#define OT_GET_CALL_FILE
#define OT_retObj_RETURN
#define OT_GET_CALL_PROC
#define OT_CHECK_OPTIONAL(val)
#define OT_CHECK_NOARGS
#define OT_CHECK_STRN(val)
#define Exit_doc
#define OT_SETUP_hdl__null_allow
#define error
Definition high_lng.h:339
const MK_STRB * MK_STRN
signed int MK_I32
static bool MkSysStringIsNULL(MK_STRN str)
#define MqExit(...)

◆ atlmqmsgque_MqContextC_GetBuffer()

static OT_ProcRet atlmqmsgque_MqContextC_GetBuffer ( MqContextC_ARGS )
static

Atl: MkBufferC [MqContextC::GetBuffer $ctx] C-API
get the MqContextS::ctxbuf object

Definition at line 1838 of file MqContextC_atl.c.

1838 {
1842 MK_BUF retVal = MqContextGetBuffer (hdl);
1843 OT_retObj_SET_BUF(retVal);
1844 goto end;
1845 error:
1847 end:
1849}
#define OT_SETUP_NOARG(d)
#define OT_retObj_SET_BUF(nat)
#define OT_SETUP_hdl
#define GetBuffer_doc
#define MqContextGetBuffer(...)

◆ atlmqmsgque_MqContextC_GetRoot()

static OT_ProcRet atlmqmsgque_MqContextC_GetRoot ( MqContextC_ARGS )
static

Atl: MqContextC [MqContextC::GetRoot $ctx] C-API
get the Root (toplevel initial context)

Definition at line 1852 of file MqContextC_atl.c.

1852 {
1856 MQ_CTX retVal = MqGetRoot (hdl);
1857 OT_retObj_SET_CTX(retVal);
1858 goto end;
1859 error:
1861 end:
1863}
#define OT_retObj_SET_CTX(nat)
#define GetRoot_doc
static MQ_CTX MqGetRoot(MQ_CTX ctx)
get the Root (toplevel initial context)
PUBLIC data structure for the atlmqmsgque-specific-data

◆ atlmqmsgque_MqContextC_ProcessEvent()

static OT_ProcRet atlmqmsgque_MqContextC_ProcessEvent ( MqContextC_ARGS )
static

Atl: MqContextC::ProcessEvent $ctx ?wait:MqWaitOnEventE=NO? ?timeout:MkTimeoutE|int32=DEFAULT? C-API
enter the event-loop and wait for an incoming service-request. …

Definition at line 1895 of file MqContextC_atl.c.

1895 {
1898 enum MqWaitOnEventE wait = MQ_WAIT_NO;
1903 MkErrorC_Check(hdl,MqProcessEvent (hdl, wait, timeout));
1905 goto end;
1906 error:
1908 end:
1910}
#define OT_retObj_SET_None
#define OT_CHECK_ENUM(ename, val)
#define MkErrorC_Check(mng, PROC)
#define ProcessEvent_doc
MK_TIMEOUT_DEFAULT
time_t MK_TIME_T
#define MqProcessEvent(...)
MqWaitOnEventE
wait for an event? …
@ MQ_WAIT_NO
Check for one event but do not wait …
MK_TIME_T timeout
Definition high_lng.h:133
#define OT_CHECK_TIME_T(val)

◆ atlmqmsgque_MqContextC_ToString()

MK_DEPRECATED static MK_UNUSED OT_ProcRet atlmqmsgque_MqContextC_ToString ( MqContextC_ARGS )
static

Definition at line 1869 of file MqContextC_atl.c.

#define OT_ERROR_LNG_RETURN