diff options
author | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-01 21:56:44 +0000 |
---|---|---|
committer | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-01 21:56:44 +0000 |
commit | 241c2c7114d04aa01641f31a8274bed4811c1e53 (patch) | |
tree | d59c900d62f1bb5dd637981f06d54f6a91e42d8e /ace/WIN32_Asynch_IO.cpp | |
parent | 36bed04fb0776726fd7e88613e9387fea4a84128 (diff) | |
download | ATCD-241c2c7114d04aa01641f31a8274bed4811c1e53.tar.gz |
Tue Jun 1 16:48:58 1999 Alexander Babu Arulanthu <alex@cs.wustl.edu>
Diffstat (limited to 'ace/WIN32_Asynch_IO.cpp')
-rw-r--r-- | ace/WIN32_Asynch_IO.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ace/WIN32_Asynch_IO.cpp b/ace/WIN32_Asynch_IO.cpp index 2a5b19452b7..5180bd8ed40 100644 --- a/ace/WIN32_Asynch_IO.cpp +++ b/ace/WIN32_Asynch_IO.cpp @@ -154,7 +154,17 @@ ACE_WIN32_Asynch_Operation::cancel (void) // ERROR_OPERATION_ABORTED. All completion notifications for the I/O // operations will occur normally. - return (int) ::CancelIo (this->handle_); + // @@ This API returns 0 on failure. So, I am returning -1 in that + // case. Is that right? (Alex). + + int result = (int) ::CancelIo (this->handle_); + + if (result == 0) + // Couldnt cancel the operations. + return 2; + + // result is non-zero. All the operations are cancelled then. + return 0; #else /* Not ACE_HAS_WINNT4 && ACE_HAS_WINNT4!=0 && _MSC... */ |