HMP学习-srl相关函数-sr_DeleteThreadDeviceGroup( ) |
函数原型:
Linux long sr_DeleteThreadDeviceGroup(void)Windows int sr_DeleteThreadDeviceGroup(void)
参数:空
返回值:0成功 -1 失败
作用:移除所有的该线程创建的设备句柄组。
示例程序:
EventPollThread ()long Devices [24];int DevNum;long EventHandle;for (DevNum = 0; DevNum < 24; DevNum++)Devices [DevNum] = dx_open(...);sr_CreateThreadDeviceGroup (Devices);while (1)sr_WaitThreadDeviceGroup (-1);// do something with the eventif (done == true){break;}}sr_DeleteThreadDeviceGroup();}
|
阅读全文(2024) | 回复(0) | 编辑 | 精华 |
|
« | September 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | | | | | |
|
Blog信息 |
blog名称: 日志总数:33 评论数量:61 留言数量:-8 访问次数:236594 建立时间:2006年4月27日 | |

|