summaryrefslogtreecommitdiff
path: root/src/third_party/asio-master/asio/include/asio/detail/win_iocp_operation.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/asio-master/asio/include/asio/detail/win_iocp_operation.hpp')
-rw-r--r--src/third_party/asio-master/asio/include/asio/detail/win_iocp_operation.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/third_party/asio-master/asio/include/asio/detail/win_iocp_operation.hpp b/src/third_party/asio-master/asio/include/asio/detail/win_iocp_operation.hpp
index 81d43f07f64..e0cbcc56ced 100644
--- a/src/third_party/asio-master/asio/include/asio/detail/win_iocp_operation.hpp
+++ b/src/third_party/asio-master/asio/include/asio/detail/win_iocp_operation.hpp
@@ -51,6 +51,10 @@ public:
func_(0, this, asio::error_code(), 0);
}
+ ULONG_PTR& completionKey() {
+ return completionKey_;
+ }
+
protected:
typedef void (*func_type)(
void*, win_iocp_operation*,
@@ -58,7 +62,8 @@ protected:
win_iocp_operation(func_type func)
: next_(0),
- func_(func)
+ func_(func),
+ completionKey_(0)
{
reset();
}
@@ -76,6 +81,7 @@ protected:
OffsetHigh = 0;
hEvent = 0;
ready_ = 0;
+ completionKey_ = 0;
}
private:
@@ -84,6 +90,7 @@ private:
win_iocp_operation* next_;
func_type func_;
long ready_;
+ ULONG_PTR completionKey_;
};
} // namespace detail