theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Misc_RB_API

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

+ Collaboration diagram for MqContextC_Misc_RB_API:

Functions

static OT_ProcRet rbmqmsgque_MqContextC_GetBuffer (MqContextC_ARGS)
  Ruby: MkBufferC ctx.GetBuffer() C-API
get the MqContextS::ctxbuf object
 
static OT_ProcRet rbmqmsgque_MqContextC_GetRoot (MqContextC_ARGS)
  Ruby: MqContextC ctx.GetRoot() C-API
get the Root (toplevel initial context)
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet rbmqmsgque_MqContextC_ToString (MqContextC_ARGS)
 
static OT_ProcRet rbmqmsgque_MqContextC_Exit (MqContextC_ARGS)
  Ruby: 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 rbmqmsgque_MqContextC_ProcessEvent (MqContextC_ARGS)
  Ruby: 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

◆ rbmqmsgque_MqContextC_Exit()

static OT_ProcRet rbmqmsgque_MqContextC_Exit ( MqContextC_ARGS )
static

Ruby: 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 1542 of file MqContextC_rb.c.

1542 {
1545 MK_STRN callfunc = NULL;
1547 MK_STRN callfile = NULL;
1549 MK_I32 callline = -1;
1552 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
1553 if (MkSysStringIsNULL(callfile)) {callfile = OT_GET_CALL_FILE;}
1554 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1555 OT_retObj_SET_I32(MqExit (hdl, callfunc, callfile, callline));
1556 end: MK_UNUSED /* LONG JUMP on error */
1559}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_NI4(val)
#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 MK_UNUSED
const MK_STRB * MK_STRN
signed int MK_I32
static bool MkSysStringIsNULL(MK_STRN str)
#define MqExit(...)

◆ rbmqmsgque_MqContextC_GetBuffer()

static OT_ProcRet rbmqmsgque_MqContextC_GetBuffer ( MqContextC_ARGS )
static

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

Definition at line 1514 of file MqContextC_rb.c.

1514 {
1518 MK_BUF retVal = MqContextGetBuffer (hdl);
1519 OT_retObj_SET_BUF(retVal);
1520 end: MK_UNUSED /* LONG JUMP on error */
1522}
#define OT_SETUP_NOARG(d)
#define OT_retObj_SET_BUF(nat)
#define OT_SETUP_hdl
#define GetBuffer_doc
#define MqContextGetBuffer(...)

◆ rbmqmsgque_MqContextC_GetRoot()

static OT_ProcRet rbmqmsgque_MqContextC_GetRoot ( MqContextC_ARGS )
static

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

Definition at line 1525 of file MqContextC_rb.c.

1525 {
1529 MQ_CTX retVal = MqGetRoot (hdl);
1530 OT_retObj_SET_CTX(retVal);
1531 end: MK_UNUSED /* LONG JUMP on error */
1533}
#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 rbmqmsgque-specific-data

◆ rbmqmsgque_MqContextC_ProcessEvent()

static OT_ProcRet rbmqmsgque_MqContextC_ProcessEvent ( MqContextC_ARGS )
static

Ruby: 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 1562 of file MqContextC_rb.c.

1562 {
1565 enum MqWaitOnEventE wait = MQ_WAIT_NO;
1570 MkErrorC_Check(hdl,MqProcessEvent (hdl, wait, timeout));
1572 end: MK_UNUSED /* LONG JUMP on error */
1574}
#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)

◆ rbmqmsgque_MqContextC_ToString()

MK_DEPRECATED static MK_UNUSED OT_ProcRet rbmqmsgque_MqContextC_ToString ( MqContextC_ARGS )
static

Definition at line 1539 of file MqContextC_rb.c.

#define OT_ERROR_LNG_RETURN