test4new
来自「Vxworks的培训教程,大家分享下啊,」· 代码 · 共 34 行
TXT
34 行
#include "../lab4/pioLib.h"#include "msgQLib.h"#include "taskLib.h"MSG_Q_ID msgQId;void monitorOM();STATUS test4 (testFunc, arg) FUNCPTR testFunc; int arg; { int tid; int i; PIO_MSG_Q_DATA msgQData; if ((msgQId = msgQCreate (100, sizeof(PIO_MSG_Q_DATA), MSG_Q_FIFO)) == NULL) return (ERROR); pioInit (0x3e, msgQId); if ((tid = taskSpawn ("tTest", 100, 0, 20000, monitorOM, msgQId, 0,0,0,0,0,0,0,0,0)) == ERROR) return (ERROR); if (testFunc) { (*testFunc)(arg); taskDelay (10); } taskDelete (tid); return (OK); }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?