theLink 10.0
|
MqTypeCtxS - the instance-base for the MqContextC … More...
#include <LibMqMsgque_mq.h>
Public Attributes | ||
union { | ||
struct MkObjectS obj | ||
struct MkTypeS typ | ||
} | super | |
bool | argvFix | |
add first argument in MkBufferListC argument to MqLinkCreate and MqLinkCreateChild | ||
bool | ignoreThread | |
do not allow the usage of threads | ||
bool | ignoreSpawn | |
do not allow the usage of spawn | ||
bool | ignoreFork | |
do not allow the usage of fork | ||
MqRefCountF | fIncrSelf | |
increment the MqContextS::obj->self reference counting | ||
MqRefCountF | fDecrSelf | |
decrement the MqContextS::obj->self reference counting | ||
MqSetupF | fParentBeforeFork | |
setup and initialize a fork-process before a new fork-process is created by csmqmsgque | ||
MqSetupF | fParentAfterFork | |
cleanup a parent fork-process after a new fork-process is created by csmqmsgque | ||
MqSetupF | fChildAfterFork | |
cleanup a child fork-process after a new fork-process is created by csmqmsgque | ||
MqExitF | MqProcessExitCB | |
exit/cleanup a process | ||
MqExitF | MqThreadExitCB | |
exit/cleanup a thread | ||
MqWaitForPipeF | MqWaitForPipeCB | |
wait for pipe target to finish | ||
struct MqLinkSetupS | Child | |
setup/cleanup a CHILD object | ||
struct MqLinkSetupS | Parent | |
setup/cleanup a PARENT object | ||
struct MqCallbackS | Idle | |
Create a link to the calling tool idle-event-handling … | ||
MkMarkF | dataMF | |
Mark the data-pointer. | ||
MkMarkF | callbackMF | |
Mark the callback-data-pointer. | ||
MqHelpF | fHelp | |
Create a link to the calling tool help function. | ||
MqSetupF | fThreadInit | |
setup and initialize a thread before a new thread is created by csmqmsgque | ||
MqSetupF | fSpawnInit | |
setup and initialize a spawn-process before a new spawn-process is created by csmqmsgque | ||
bool | ignoreDisasterSetup | |
do not setup the disaster-handler at startup. | ||
MqTypeCtxS - the instance-base for the MqContextC …
The MqTypeCtxS is the instance-base for the MqContextC and has all attributes shared with all MqContextC instances.
Definition at line 3772 of file LibMqMsgque_mq.h.
bool MqTypeCtxS::argvFix |
add first argument in MkBufferListC argument to MqLinkCreate and MqLinkCreateChild
On C
, the startup arguments are available as argc and argv arguments of the main procedure. The first argument (argv
[0]) has the executable name. Other programming languages like TCL
or CSharp
does NOT provide the executable name as first argument of the main argv. If argsFix is set to true
this will be fixed. Default is false
.
Definition at line 3791 of file LibMqMsgque_mq.h.
MkMarkF MqTypeCtxS::callbackMF |
Mark the callback-data-pointer.
Definition at line 3858 of file LibMqMsgque_mq.h.
struct MqLinkSetupS MqTypeCtxS::Child |
setup/cleanup a CHILD object
MqConfigS::parent != NULL
. Definition at line 3834 of file LibMqMsgque_mq.h.
MkMarkF MqTypeCtxS::dataMF |
Mark the data-pointer.
Definition at line 3855 of file LibMqMsgque_mq.h.
MqSetupF MqTypeCtxS::fChildAfterFork |
cleanup a child fork-process after a new fork-process is created by csmqmsgque
Definition at line 3819 of file LibMqMsgque_mq.h.
MqRefCountF MqTypeCtxS::fDecrSelf |
decrement the MqContextS::obj->self reference counting
"Embedding" csmqmsgque into an other language create TWO views on the same ctx … an other-language-view and an c-api-view. The MqContextS::obj->self is the connection c-api -> other-lng and the other-lng has something equal. Usually the other-lng using MqContextS->MkObjectS::refCount++ and MqContextS->MkObjectS::refCount– to bind the c-api-view to the other-language-view. For the special purpose of "embedding" a slave into a master*… as example… the *slave is entirely controlled by the master and the MqContextS::obj->self have to be protected*… this protection is done with *other-lng-refCount-protection
Definition at line 3810 of file LibMqMsgque_mq.h.
MqHelpF MqTypeCtxS::fHelp |
Create a link to the calling tool help function.
type | default | option | application | context |
---|---|---|---|---|
POINTER | NULL | NO | server/client | parent |
As a service to the programmer the csmqmsgque startup code in MqLinkCreate checks for the both options -h
and --help
to provide a tool-specific help-page and exit.
Definition at line 3868 of file LibMqMsgque_mq.h.
MqRefCountF MqTypeCtxS::fIncrSelf |
increment the MqContextS::obj->self reference counting
"Embedding" csmqmsgque into an other language create TWO views on the same ctx … an other-language-view and an c-api-view. The MqContextS::obj->self is the connection c-api -> other-lng and the other-lng has something equal. Usually the other-lng using MqContextS->MkObjectS::refCount++ and MqContextS->MkObjectS::refCount– to bind the c-api-view to the other-language-view. For the special purpose of "embedding" a slave into a master*… as example… the *slave is entirely controlled by the master and the MqContextS::obj->self have to be protected*… this protection is done with *other-lng-refCount-protection
Definition at line 3805 of file LibMqMsgque_mq.h.
MqSetupF MqTypeCtxS::fParentAfterFork |
cleanup a parent fork-process after a new fork-process is created by csmqmsgque
Definition at line 3816 of file LibMqMsgque_mq.h.
MqSetupF MqTypeCtxS::fParentBeforeFork |
setup and initialize a fork-process before a new fork-process is created by csmqmsgque
Definition at line 3813 of file LibMqMsgque_mq.h.
MqSetupF MqTypeCtxS::fSpawnInit |
setup and initialize a spawn-process before a new spawn-process is created by csmqmsgque
Definition at line 3874 of file LibMqMsgque_mq.h.
MqSetupF MqTypeCtxS::fThreadInit |
setup and initialize a thread before a new thread is created by csmqmsgque
Definition at line 3871 of file LibMqMsgque_mq.h.
struct MqCallbackS MqTypeCtxS::Idle |
Create a link to the calling tool idle-event-handling …
The Idle-Function is used to process tasks in the background to give the tool-user the feeling of a non-blocking application. For example Tcl using the event-handling to update the Tk user-interface while the application is waiting for data. The Idle-Function is called on idle-time and is designed for a very short function execution time. Do only one action per function call. This function will be called with a ~10000 usec interval to guarantee a parallel like execution.
Definition at line 3852 of file LibMqMsgque_mq.h.
bool MqTypeCtxS::ignoreDisasterSetup |
do not setup the disaster-handler at startup.
The disaster-handler bind the function MkDisasterSignal to the signal SIGSEGV
and is used to print the stack-trace and additional MqContextC data to MkLogDataS::logFILE on crash.
The problem is, if a target-application (language) needs SIGSEGV
, this function can be deactivated with ignoreDisasterSetup = true
.
Definition at line 3883 of file LibMqMsgque_mq.h.
bool MqTypeCtxS::ignoreFork |
do not allow the usage of fork
Definition at line 3800 of file LibMqMsgque_mq.h.
bool MqTypeCtxS::ignoreSpawn |
do not allow the usage of spawn
Definition at line 3797 of file LibMqMsgque_mq.h.
bool MqTypeCtxS::ignoreThread |
do not allow the usage of threads
Definition at line 3794 of file LibMqMsgque_mq.h.
MqExitF MqTypeCtxS::MqProcessExitCB |
exit/cleanup a process
Definition at line 3822 of file LibMqMsgque_mq.h.
MqExitF MqTypeCtxS::MqThreadExitCB |
exit/cleanup a thread
Definition at line 3825 of file LibMqMsgque_mq.h.
MqWaitForPipeF MqTypeCtxS::MqWaitForPipeCB |
wait for pipe target to finish
Definition at line 3828 of file LibMqMsgque_mq.h.
struct MkObjectS MqTypeCtxS::obj |
Definition at line 3776 of file LibMqMsgque_mq.h.
struct MqLinkSetupS MqTypeCtxS::Parent |
setup/cleanup a PARENT object
Definition at line 3838 of file LibMqMsgque_mq.h.
union { ... } MqTypeCtxS::super |
struct MkTypeS MqTypeCtxS::typ |
Definition at line 3777 of file LibMqMsgque_mq.h.