mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
net: use std::deque
for vSendMsg
instead of std::list
The change was introduced as an optimization in 027a852a
(dash#3398) but
prevents the backport of bitcoin#26844 due to the inability to engage in
binary expressions with iterators of `std::list`.
This commit is contained in:
parent
2ecba6ba5f
commit
caaa0fda01
@ -471,7 +471,7 @@ public:
|
||||
/** Offset inside the first vSendMsg already sent */
|
||||
size_t nSendOffset GUARDED_BY(cs_vSend){0};
|
||||
uint64_t nSendBytes GUARDED_BY(cs_vSend){0};
|
||||
std::list<std::vector<unsigned char>> vSendMsg GUARDED_BY(cs_vSend);
|
||||
std::deque<std::vector<unsigned char>> vSendMsg GUARDED_BY(cs_vSend);
|
||||
std::atomic<size_t> nSendMsgSize{0};
|
||||
Mutex cs_vSend;
|
||||
Mutex m_sock_mutex;
|
||||
|
Loading…
Reference in New Issue
Block a user