modify iocp.

This commit is contained in:
caozhiyi
2021-05-27 14:04:26 +08:00
parent 136cf53624
commit b23eab1962
26 changed files with 163 additions and 120 deletions

View File

@@ -8,9 +8,9 @@
namespace cppnet {
#ifdef __win__
ThreadSafeUnorderedMap<uint64_t, std::shared_ptr<Socket>> Socket::__all_socket_map;
ThreadSafeUnorderedMap<uint64_t, std::shared_ptr<Socket>> Socket::__all_socket_map;
#else
thread_local std::unordered_map<uint64_t, std::shared_ptr<Socket>> Socket::__all_socket_map;
thread_local std::unordered_map<uint64_t, std::shared_ptr<Socket>> Socket::__all_socket_map;
#endif
}