HMP学习-srl相关函数-sr_CreateThreadDeviceGroup( ) |
函数原型:
Linux long sr_CreateThreadDeviceGroup (long *Devices,int NumDevices)Windows int sr_CreateThreadDeviceGroup (long *Devices,int NumDevices)
参数:设备句柄指针。设备句柄个数。
返回值:0成功 -1失败
示例程序:
EventPollThread (){long Devices [24];int DevNum;long EventHandle;for (DevNum = 0; DevNum < 24; DevNum++){Devices [DevNum] = dx_open(...);}sr_CreateThreadDeviceGroup (Devices, 24);while (1){sr_WaitThreadDeviceGroup (-1);// do something with the event}}
|
阅读全文(1707) | 回复(0) | 编辑 | 精华 |
|
|
| « | November 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 访问次数:238317 建立时间:2006年4月27日 | |

|