Refine: 优化webrtc对象追踪机制

This commit is contained in:
xiongziliang 2021-11-28 21:43:21 +08:00
parent 61c55f4030
commit f45830cbb8
2 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit 323618980315228e46a68204c88c482c150aab82
Subproject commit 6c476bed4f0d0ee51bb550757aad71b4a412d92f

View File

@ -43,9 +43,11 @@ static onceToken token([]() {
}//namespace RTC
static atomic<uint64_t> s_key{0};
WebRtcTransport::WebRtcTransport(const EventPoller::Ptr &poller) {
_poller = poller;
_identifier = to_string(reinterpret_cast<uint64_t>(this));
_identifier = to_string(++s_key);
_packet_pool.setSize(64);
}