📄 msgqsmlib.h
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -