theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Misc_TCL_API

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

+ Collaboration diagram for MqContextC_Misc_TCL_API:

Functions

static OT_ProcRet tclmqmsgque_MqContextC_GetBuffer (MqContextC_ARGS)
  Tcl: MkBufferC [$ctx GetBuffer] C-API
get the MqContextS::ctxbuf object
 
static OT_ProcRet tclmqmsgque_MqContextC_GetRoot (MqContextC_ARGS)
  Tcl: MqContextC [$ctx GetRoot] C-API
get the Root (toplevel initial context)
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet tclmqmsgque_MqContextC_ToString (MqContextC_ARGS)
 
static OT_ProcRet tclmqmsgque_MqContextC_Exit (MqContextC_ARGS)
  Tcl: 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 tclmqmsgque_MqContextC_ProcessEvent (MqContextC_ARGS)
  Tcl: $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

◆ tclmqmsgque_MqContextC_Exit()

static OT_ProcRet tclmqmsgque_MqContextC_Exit ( MqContextC_ARGS )
static

Tcl: 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 1894 of file MqContextC_tcl.c.

1894 {
1897 MK_STRN callfunc = NULL;
1899 MK_STRN callfile = NULL;
1901 MK_I32 callline = -1;
1904 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
1905 if (MkSysStringIsNULL(callfile)) {callfile = OT_GET_CALL_FILE;}
1906 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1907 OT_retObj_SET_I32(MqExit (hdl, callfunc, callfile, callline));
1908 goto end;
1909 error:
1911 end:
1914}
#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(...)

◆ tclmqmsgque_MqContextC_GetBuffer()

static OT_ProcRet tclmqmsgque_MqContextC_GetBuffer ( MqContextC_ARGS )
static

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

Definition at line 1860 of file MqContextC_tcl.c.

1860 {
1864 MK_BUF retVal = MqContextGetBuffer (hdl);
1865 OT_retObj_SET_BUF(retVal);
1866 goto end;
1867 error:
1869 end:
1871}
#define OT_SETUP_NOARG(d)
#define OT_retObj_SET_BUF(nat)
#define OT_SETUP_hdl
#define GetBuffer_doc
#define MqContextGetBuffer(...)

◆ tclmqmsgque_MqContextC_GetRoot()

static OT_ProcRet tclmqmsgque_MqContextC_GetRoot ( MqContextC_ARGS )
static

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

Definition at line 1874 of file MqContextC_tcl.c.

1874 {
1878 MQ_CTX retVal = MqGetRoot (hdl);
1879 OT_retObj_SET_CTX(retVal);
1880 goto end;
1881 error:
1883 end:
1885}
#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 tclmqmsgque-specific-data

◆ tclmqmsgque_MqContextC_ProcessEvent()

static OT_ProcRet tclmqmsgque_MqContextC_ProcessEvent ( MqContextC_ARGS )
static

Tcl: $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 1917 of file MqContextC_tcl.c.

1917 {
1920 enum MqWaitOnEventE wait = MQ_WAIT_NO;
1925 MkErrorC_Check(hdl,MqProcessEvent (hdl, wait, timeout));
1927 goto end;
1928 error:
1930 end:
1932}
#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)

◆ tclmqmsgque_MqContextC_ToString()

MK_DEPRECATED static MK_UNUSED OT_ProcRet tclmqmsgque_MqContextC_ToString ( MqContextC_ARGS )
static

Definition at line 1891 of file MqContextC_tcl.c.

#define OT_ERROR_LNG_RETURN