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

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);
}