mirror of
https://github.com/caozhiyi/CppNet.git
synced 2026-01-19 00:05:14 +08:00
modify iocp.
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user