简体   繁体   中英

Overlapped IO in wxWidgets application

I'm working on a Windows-only wxWidgets GUI application that shall receive asynchronous notifications from a service process via a named pipe. I would like to avoid spawning a separate thread for pipe handle monitoring. Hence, I'm thinking about using overlapped IO. My question is: what would be the most straight-forward way of receiving notifications for the pipe handle in the main thread?

不幸的是,没有办法将任意HANDLE与wxWidgets事件循环集成在一起,因此最好的解决方案是使用单独的线程,如果确实需要修改主线程,则可以调用wxQueueEvent

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM