mirror of
https://gitee.com/openharmony/communication_netstack
synced 2024-11-23 06:50:46 +00:00
!1682 修复unordered_map的size过大导致的稳定性问题
Merge pull request !1682 from mayongzhi/master
This commit is contained in:
commit
2546accfc8
@ -23,7 +23,7 @@
|
||||
#include <memory>
|
||||
#include <new>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
#include "base_context.h"
|
||||
@ -46,7 +46,7 @@ static constexpr const char *CODE = "code";
|
||||
static constexpr const char *MSG = "message";
|
||||
|
||||
static std::mutex g_mutex;
|
||||
static std::unordered_map<uint64_t, std::shared_ptr<UvHandlerQueue>> g_handlerQueueMap;
|
||||
static std::map<uint64_t, std::shared_ptr<UvHandlerQueue>> g_handlerQueueMap;
|
||||
static const char *const HTTP_UV_SYNC_QUEUE_NAME = "HTTP_UV_SYNC_QUEUE_NAME";
|
||||
|
||||
static std::unordered_set<napi_env> unorderedSetEnv;
|
||||
|
Loading…
Reference in New Issue
Block a user