ndn::util::scheduler => ndn::scheduler

Refs: #4883
Change-Id: I4049fdd424b6037b754b0d0a0e740667b82298e6
This commit is contained in:
Davide Pesavento committed 2019-03-17 15:04:42 -04:00
1 parent c490212fb2
commit 0d837e3f2a
4 files changed
+8 -10

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2012-2017 University of California, Los Angeles
* Copyright (c) 2012-2019 University of California, Los Angeles
*
* This file is part of ChronoSync, synchronization library for distributed realtime
* applications for NDN.
@@ -50,8 +50,8 @@ public:
public:
const Interest interest;
ConstBufferPtr digest;
bool isUnknown;
ndn::EventId expirationEvent;
bool isUnknown;
ndn::scheduler::EventId expirationEvent;
};
using UnsatisfiedInterestPtr = shared_ptr<UnsatisfiedInterest>;
-2
View File
@@ -36,8 +36,6 @@ INIT_LOGGER(Logic);
namespace chronosync {
using ndn::EventId;
const uint8_t EMPTY_DIGEST_VALUE[] = {
0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14,
0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24,
+4 -4
View File
@@ -505,10 +505,10 @@ private:
UpdateCallback m_onUpdate;
// Event
ndn::util::scheduler::Scheduler m_scheduler;
ndn::util::scheduler::ScopedEventId m_delayedInterestProcessingId;
ndn::util::scheduler::ScopedEventId m_reexpressingInterestId;
ndn::util::scheduler::ScopedEventId m_resetInterestId;
ndn::Scheduler m_scheduler;
ndn::scheduler::ScopedEventId m_delayedInterestProcessingId;
ndn::scheduler::ScopedEventId m_reexpressingInterestId;
ndn::scheduler::ScopedEventId m_resetInterestId;
// Timer
ndn::random::RandomNumberEngine& m_rng;
+1 -1
View File
@@ -219,7 +219,7 @@ BOOST_AUTO_TEST_CASE(RecoverConflict)
handler[1]->updateSeqNo(2);
handler[2]->updateSeqNo(4);
advanceClocks(ndn::time::milliseconds(10), 100);
advanceClocks(ndn::time::milliseconds(50), 100);
BOOST_CHECK_EQUAL(handler[0]->map[handler[1]->logic.getSessionName()], 2);
BOOST_CHECK_EQUAL(handler[0]->map[handler[2]->logic.getSessionName()], 4);
BOOST_CHECK_EQUAL(handler[1]->map[handler[2]->logic.getSessionName()], 4);