aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/iothreadpool.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-12 13:42:23 +0200
committerStefan Boberg <[email protected]>2021-09-12 13:42:23 +0200
commit835a7d00a9da37b07cdf450899ac7fd0125b3320 (patch)
tree8281fb3c085d4a8982b0455bcb28a0d6d0ee27d2 /zenhttp/iothreadpool.h
parentAdded some std::error_code helpers (diff)
downloadzen-835a7d00a9da37b07cdf450899ac7fd0125b3320.tar.xz
zen-835a7d00a9da37b07cdf450899ac7fd0125b3320.zip
Some error handling improvements in zenhttp
Primarily replaces some exception usage with std::error_code
Diffstat (limited to 'zenhttp/iothreadpool.h')
-rw-r--r--zenhttp/iothreadpool.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/zenhttp/iothreadpool.h b/zenhttp/iothreadpool.h
index f64868540..4418b940b 100644
--- a/zenhttp/iothreadpool.h
+++ b/zenhttp/iothreadpool.h
@@ -4,6 +4,8 @@
#include <zencore/windows.h>
+#include <system_error>
+
namespace zen {
//////////////////////////////////////////////////////////////////////////
@@ -18,7 +20,7 @@ public:
WinIoThreadPool(int InThreadCount);
~WinIoThreadPool();
- void CreateIocp(HANDLE IoHandle, PTP_WIN32_IO_CALLBACK Callback, void* Context);
+ void CreateIocp(HANDLE IoHandle, PTP_WIN32_IO_CALLBACK Callback, void* Context, std::error_code& ErrorCode);
inline PTP_IO Iocp() const { return m_ThreadPoolIo; }
private: