Added support for I/O completion callbacks.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@807 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-09-01 19:45:34 +00:00
parent a8713bba98
commit 3a0aefb321
21 changed files with 625 additions and 257 deletions

View File

@@ -614,13 +614,13 @@ RCODE F_FileHdl::lowLevelRead(
rc = f_mapPlatformError( errno, NE_FLM_READING_FILE);
}
pAsyncClient->notifyComplete( rc, uiBytesRead, FALSE);
pAsyncClient->notifyComplete( rc, uiBytesRead);
goto Exit;
}
if( bWaitForRead)
{
if( RC_BAD( rc = pAsyncClient->waitToComplete( FALSE)))
if( RC_BAD( rc = pAsyncClient->waitToComplete()))
{
if( rc != NE_FLM_IO_END_OF_FILE)
{
@@ -839,13 +839,13 @@ RCODE F_FileHdl::lowLevelWrite(
rc = f_mapPlatformError( errno, NE_FLM_WRITING_FILE);
}
pAsyncClient->notifyComplete( rc, uiBytesWritten, FALSE);
pAsyncClient->notifyComplete( rc, uiBytesWritten);
goto Exit;
}
if( bWaitForWrite)
{
if( RC_BAD( rc = pAsyncClient->waitToComplete( FALSE)))
if( RC_BAD( rc = pAsyncClient->waitToComplete()))
{
if( rc != NE_FLM_IO_DISK_FULL)
{