使用wepoll iocp模拟epoll api,实现在windows下支持iocp (#1871)

This commit is contained in:
紫耀风
2022-08-11 10:18:16 +08:00
committed by GitHub
parent b34db64961
commit 4e8c56e2be
8 changed files with 2488 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
/*
* Copyright (c) 2016 The ZLToolKit project authors. All Rights Reserved.
*
* This file is part of ZLToolKit(https://github.com/ZLMediaKit/ZLToolKit).
*
* Use of this source code is governed by MIT license that can be found in the
* LICENSE file in the root of the source tree. All contributing project authors
* may be found in the AUTHORS file in the root of the source tree.
*/
#include "epoll.h"
std::map<int, HANDLE> toolkit::s_wepollHandleMap;
int toolkit::s_handleIndex = 0;
std::mutex toolkit::s_handleMtx;