theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Misc_PY_API

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

+ Collaboration diagram for MqContextC_Misc_PY_API:

Functions

static OT_ProcRet pymqmsgque_MqContextC_GetBuffer (MqContextC_ARGS)
  Python: MkBufferC ctx.GetBuffer() C-API
get the MqContextS::ctxbuf object
 
static OT_ProcRet pymqmsgque_MqContextC_GetRoot (MqContextC_ARGS)
  Python: MqContextC ctx.GetRoot() C-API
get the Root (toplevel initial context)
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet pymqmsgque_MqContextC_ToString (MqContextC_ARGS)
 
static OT_ProcRet pymqmsgque_MqContextC_Exit (MqContextC_ARGS)
  Python: int32 ctx.Exit(?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 pymqmsgque_MqContextC_ProcessEvent (MqContextC_ARGS)
  Python: ctx.ProcessEvent(?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

◆ pymqmsgque_MqContextC_Exit()

static OT_ProcRet pymqmsgque_MqContextC_Exit ( MqContextC_ARGS )
static

Python: int32 ctx.Exit(?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 1841 of file MqContextC_py.c.

1841 {
1844 MK_STRN callfunc = NULL;
1846 MK_STRN callfile = NULL;
1848 MK_I32 callline = -1;
1851 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
1852 if (MkSysStringIsNULL(callfile)) {callfile = OT_GET_CALL_FILE;}
1853 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1854 OT_retObj_SET_I32(MqExit (hdl, callfunc, callfile, callline));
1855 goto end;
1856 error:
1858 end:
1861}
#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(...)

◆ pymqmsgque_MqContextC_GetBuffer()

static OT_ProcRet pymqmsgque_MqContextC_GetBuffer ( MqContextC_ARGS )
static

Python: MkBufferC ctx.GetBuffer() C-API
get the MqContextS::ctxbuf object

Definition at line 1807 of file MqContextC_py.c.

1807 {
1811 MK_BUF retVal = MqContextGetBuffer (hdl);
1812 OT_retObj_SET_BUF(retVal);
1813 goto end;
1814 error:
1816 end:
1818}
#define OT_SETUP_NOARG(d)
#define OT_retObj_SET_BUF(nat)
#define OT_SETUP_hdl
#define GetBuffer_doc
#define MqContextGetBuffer(...)

◆ pymqmsgque_MqContextC_GetRoot()

static OT_ProcRet pymqmsgque_MqContextC_GetRoot ( MqContextC_ARGS )
static

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

Definition at line 1821 of file MqContextC_py.c.

1821 {
1825 MQ_CTX retVal = MqGetRoot (hdl);
1826 OT_retObj_SET_CTX(retVal);
1827 goto end;
1828 error:
1830 end:
1832}
#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 pymqmsgque-specific-data

◆ pymqmsgque_MqContextC_ProcessEvent()

static OT_ProcRet pymqmsgque_MqContextC_ProcessEvent ( MqContextC_ARGS )
static

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

Definition at line 1864 of file MqContextC_py.c.

1864 {
1867 enum MqWaitOnEventE wait = MQ_WAIT_NO;
1872 MkErrorC_Check(hdl,MqProcessEvent (hdl, wait, timeout));
1874 goto end;
1875 error:
1877 end:
1879}
#define OT_retObj_SET_None
#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_ENUM(ename, val)
#define OT_CHECK_TIME_T(val)

◆ pymqmsgque_MqContextC_ToString()

MK_DEPRECATED static MK_UNUSED OT_ProcRet pymqmsgque_MqContextC_ToString ( MqContextC_ARGS )
static

Definition at line 1838 of file MqContextC_py.c.

#define OT_ERROR_LNG_RETURN