Message135425
| Author |
pitrou |
| Recipients |
benjamin.peterson, daniel.urban, jcon, pitrou, stutzbach |
| Date |
2011年05月07日.09:23:37 |
| SpamBayes Score |
0.0015068275 |
| Marked as misclassified |
No |
| Message-id |
<1304760219.25.0.441505412411.issue9971@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
A solution could be to use overlapped I/O on the named pipe handles.
The first poll() would call ReadFile() with a tiny value (1?) and store an object wrapping the OVERLAPPED structure. Subsequent poll() or recv() would re-use that structure until the overlapped read succeeds.
The hEvent in the OVERLAPPED structure should be usable in WFMO fine. |
|