How to implement asynchronous write in c/c++?

WriteFile( tmp_pipe, &Time, sizeof(double), &dwWritten, NULL );

The above is synchronous, if buffer of tmp_pipe is used up, it'll wait there.

How to make the above finish instantly, maybe just ignore the data if the buffer is full?

1
задан Dummy00001 8 September 2010 в 17:49
поделиться