MqContextC - various types used by ccmqmsgque … More...
Collaboration diagram for MqContextC_TypeApi_C_API:Classes | |
| struct | libmqmsgque::MqCallbackS |
| used for callback function pointer management More... | |
| struct | libmqmsgque::MqLinkSetupS |
| MqContextC - used to create or delete a instance to manage a link … More... | |
Typedefs | |
| typedef enum MkErrorE(* | libmqmsgque::MqCreateF) (MK_RT mkrt, MQ_CTX const ctx, MK_BFL const args) |
| the prototype for the ContextCreate function … | |
| typedef void(* | libmqmsgque::MqDeleteF) (MQ_CTX const ctx) |
| the prototype for a ContextDelete function … | |
| typedef void(* | libmqmsgque::MqHelpF) (MK_STRN basename) |
| application specific help function type … | |
| typedef int(* | libmqmsgque::MqExitF) (MK_RT mkrt, int num) |
| prototype for exit a process or thread … | |
| typedef bool(* | libmqmsgque::MqWaitForPipeF) (MK_RT mkrt, MQ_CTX const ctx, const struct MkIdS *idP) |
| Wait for a pipe-server to finish … | |
| typedef void(* | libmqmsgque::MqSetupF) (MQ_CTX const ctx) |
used to setup (initialize) a new thread/fork/process created by ccmqmsgque using the SysServer? style commands | |
| typedef void(* | libmqmsgque::MqRefCountF) (MK_RT mkrt, MQ_CTX ctx, MK_PTR const env) |
| used in libmqmsgque::MqTypeCtxS::fIncrSelf and libmqmsgque::MqTypeCtxS::fDecrSelf to protect an "embedded" self on deletion | |
MqContextC - various types used by ccmqmsgque …
the prototype for the ContextCreate function …
This function is the MqContextS::fCreate and MqContextS::fThreadCreate parameter and is used to :
| [in] | mkrt | the runtime environment |
| [in] | ctx | context configuration (NULL is not allowed) |
| args | [in,out] this is the args buffer-list pointer |
Definition at line 972 of file LibMqMsgque_mq.h.
| typedef void( * libmqmsgque::MqDeleteF) (MQ_CTX const ctx) |
the prototype for a ContextDelete function …
This function is the MqContextS::fDelete and MqContextS::fThreadDelete parameter and is used to:
Definition at line 1201 of file LibMqMsgque_mq.h.
| typedef int( * libmqmsgque::MqExitF) (MK_RT mkrt, int num) |
prototype for exit a process or thread …
By default, a process-MqExitF never returns, but this is not true for a thread-MqExitF, where a "return" from the thread-worker-process terminates the thread.
If the exit is not coverd in the MqExitF function than a false-return signal that a further processing with MkSysExit should be done.
Definition at line 1227 of file LibMqMsgque_mq.h.
| typedef void( * libmqmsgque::MqHelpF) (MK_STRN basename) |
application specific help function type …
| basename | the basename of the tool |
Definition at line 1209 of file LibMqMsgque_mq.h.
used in libmqmsgque::MqTypeCtxS::fIncrSelf and libmqmsgque::MqTypeCtxS::fDecrSelf to protect an "embedded" self on deletion
"Embedding" ccmqmsgque into an other language create TWO views on the same ctx … an other-language-view and an c-api-view. The libmqmsgque::MqContextS::obj->self is the connection c-api -> other-lng and the other-lng has something equal. Usually the other-lng using libmqmsgque::MqContextS->MkObjectS::refCount++ and libmqmsgque::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 libmqmsgque::MqContextS::obj->self have to be protected*… this protection is done with *other-lng-refCount-protection
Definition at line 1272 of file LibMqMsgque_mq.h.
| typedef void( * libmqmsgque::MqSetupF) (MQ_CTX const ctx) |
used to setup (initialize) a new thread/fork/process created by ccmqmsgque using the SysServer? style commands
Definition at line 1258 of file LibMqMsgque_mq.h.
| typedef bool( * libmqmsgque::MqWaitForPipeF) (MK_RT mkrt, MQ_CTX const ctx, const struct MkIdS *idP) |
Wait for a pipe-server to finish …
This function is used internally to synchronize the commands in a @ pipe. To overload this function with a new functionality, use MqTypeCtxS::MqWaitForPipeCB.
param_mkrt param_ctx param[in] idP Filled by process/thread startup function return boolean to indicate if wait was done (true) or not (false)
Definition at line 1247 of file LibMqMsgque_mq.h.