diff options
author | Erik Sohns <eriksohns@fastmail.net> | 2015-12-01 19:36:47 +0100 |
---|---|---|
committer | Erik Sohns <eriksohns@fastmail.net> | 2015-12-01 19:36:47 +0100 |
commit | 502c6fce4c245da42c885a1e85c5821de282a2d4 (patch) | |
tree | c6ed5b30d28e16efffe02c2f7e42152b24f253f1 | |
parent | 6cec72188dd5c94b43ce4dcc72fcf87b62f3ef88 (diff) | |
download | ATCD-502c6fce4c245da42c885a1e85c5821de282a2d4.tar.gz |
added support for CancelIoEx() (Win32)
-rw-r--r-- | ACE/ace/WIN32_Asynch_IO.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ACE/ace/WIN32_Asynch_IO.cpp b/ACE/ace/WIN32_Asynch_IO.cpp index d914ccfc463..7f3d9d6fbc4 100644 --- a/ACE/ace/WIN32_Asynch_IO.cpp +++ b/ACE/ace/WIN32_Asynch_IO.cpp @@ -175,7 +175,12 @@ ACE_WIN32_Asynch_Operation::cancel (void) // @@ This API returns 0 on failure. So, I am returning -1 in that // case. Is that right? (Alex). +#if (_WIN32_WINNT < 0x0600) int const result = (int) ::CancelIo (this->handle_); +#else + int const result = (int) ::CancelIoEx (this->handle_, + NULL); +#endif /* _WIN32_WINNT < 0x0600 */ if (result == 0) // Couldn't cancel the operations. |