mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-20 15:22:22 +08:00
使用wepoll iocp模拟epoll api,实现在windows下支持iocp (#1871)
This commit is contained in:
14
3rdpart/wepoll/sys/epoll.cpp
Normal file
14
3rdpart/wepoll/sys/epoll.cpp
Normal 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;
|
||||
Reference in New Issue
Block a user