msgqsmlib.h

来自「vxworks的完整的源代码」· C头文件 代码 · 共 63 行

H
63
字号
/* msgQSmLib.h - shared message queue library header file *//* Copyright 1984-1992 Wind River Systems, Inc. *//*modification history--------------------01d,29sep92,pme  removed msgQSmNumMsgs(), msgQSmSend(), msgQSmReceived()		 and msgQSmInfoGet() functions prototypes.01b,22sep92,rrr  added support for c++01a,19jul92,pme  cleaned up according to code review.                 written.*/#ifndef __INCmsgQSmLibh#define __INCmsgQSmLibh#ifdef __cplusplusextern "C" {#endif#include "vxWorks.h"#include "vwModNum.h"#include "msgQLib.h"/* typedefs */typedef struct sm_msg_q * SM_MSG_Q_ID;		/* shared message queue ID *//* macros *//* The following macro determines the number of bytes needed to buffer * a message of the specified length.  The node size is rounded up for * efficiency an alignement.  The total buffer space required for a pool for * <maxMsgs> messages each of up to <maxMsgLength> bytes is: * *     maxMsgs * SM_MSG_NODE_SIZE (maxMsgLength) */#define SM_MSG_NODE_SIZE(msgLength)	\	(((sizeof (SM_MSG_NODE) + msgLength) + 3) & ~3)/* function declarations */#if defined(__STDC__) || defined(__cplusplus)extern MSG_Q_ID  msgQSmCreate (int maxMsgs, int maxMsgLength, int options);extern void      msgQSmShowInit ();#else   /* __STDC__ */extern MSG_Q_ID  msgQSmCreate ();extern void      msgQSmShowInit ();#endif  /* __STDC__ */#ifdef __cplusplus}#endif#endif /* __INCmsgQSmLibh */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?