diff options
author | michele papalini <micpapal@cisco.com> | 2019-12-06 11:13:11 +0100 |
---|---|---|
committer | michele papalini <micpapal@cisco.com> | 2019-12-06 11:13:11 +0100 |
commit | c294250cd9faccf514316f92636a1a78a35b514f (patch) | |
tree | a95b24ee86a75791d8db5a30173cf24447b31ed6 /libtransport/src/hicn/transport/interfaces | |
parent | e8eda2c819b36555d9d6b080eaf8b4b1109d7646 (diff) |
[HICN-437] concurrency problem in rtc producer socket
Signed-off-by: michele papalini <micpapal@cisco.com>
Change-Id: I629914f48e00814796f16b201e03549e9c7941bd
Diffstat (limited to 'libtransport/src/hicn/transport/interfaces')
-rw-r--r-- | libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc b/libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc index f1057aa57..bb93e0535 100644 --- a/libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc +++ b/libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc @@ -183,8 +183,8 @@ void RTCProducerSocket::produce(std::unique_ptr<utils::MemBuf> &&buffer) { // remove interests from the interest cache if it exists // this generates nacks that will tell to the consumer // that a new data packet was produced + utils::SpinLock::Acquire locked(interests_cache_lock_); if (!seqs_map_.empty()) { - utils::SpinLock::Acquire locked(interests_cache_lock_); for (auto it = seqs_map_.begin(); it != seqs_map_.end(); it++) { if (it->first != old_curr) sendNack(it->first); } |