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?
Asked
Active
Viewed 326 times
1 Answers
1
There is unfortunately no way to integrate an arbitrary HANDLE
with wxWidgets event loop so the best solution is to use a separate thread and maybe call wxQueueEvent if you really need to modify the main thread.

VZ.
- 21,740
- 3
- 39
- 42
-
I had to choose this route, after all. Apparently, there are no other options. – Roman Dmitrienko Dec 07 '12 at 04:42