Immediate IO in ReadFile / WriteFile
Martin Wilck
Martin.Wilck at fujitsu-siemens.com
Wed Jan 9 07:04:51 CST 2002
What about the following idea:
Instead of doing an explicit immediate IO operation in e.g. ReadFile(),
que an asynchronous request by calling ReadFileEx() as if no data were
available. Then issue a
WaitForSingleObject (overlapped->hEvent, 0) /* zero timeout ! */
to see if the request can be handled immediately. Apart from preserving
request order, this would also ensure that previous async requests are
actually scheduled.
Opinions?
Martin
--
Martin Wilck Phone: +49 5251 8 15113
Fujitsu Siemens Computers Fax: +49 5251 8 20409
Heinz-Nixdorf-Ring 1 mailto:Martin.Wilck at Fujitsu-Siemens.com
D-33106 Paderborn http://www.fujitsu-siemens.com/primergy
More information about the wine-devel
mailing list