Message135434
| Author |
pitrou |
| Recipients |
asksol, brian.curtin, jnoller, kristjan.jonsson, pitrou, tim.golden |
| Date |
2011年05月07日.10:00:03 |
| SpamBayes Score |
0.0015068275 |
| Marked as misclassified |
No |
| Message-id |
<1304762405.72.0.526872303226.issue11668@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. |
|