Skip to content

Commit e76dc54

Browse files
committed
Replace IsRunning() with IsPending()
From NS-3 change log: * (core) Deprecated "EventId::IsRunning()". It has been replaced with "EventId::IsPending()". Signed-off-by: Anders Martinsson <anders.martinsson@intinor.se>
1 parent 6058f0c commit e76dc54

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

model/linux/linux-socket-impl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ LinuxSocketImpl::LinuxSocketImpl ()
150150

151151
LinuxSocketImpl::~LinuxSocketImpl ()
152152
{
153-
if (m_poll.IsRunning ())
153+
if (m_poll.IsPending ())
154154
{
155155
m_poll.Cancel ();
156156
}

model/task-manager.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ TaskManager::Wakeup (Task *task)
310310
}
311311
task->m_state = Task::ACTIVE;
312312
m_scheduler->Enqueue (task);
313-
if ((0 == m_current) && (!m_nextSchedule.IsRunning ()))
313+
if ((0 == m_current) && (!m_nextSchedule.IsPending ()))
314314
{
315315
m_nextSchedule = Simulator::ScheduleNow (&TaskManager::Schedule, this);
316316
}

model/unix-timer-fd.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ UnixTimerFd::Settime (int flags,
249249
int
250250
UnixTimerFd::Gettime (struct itimerspec *cur_value) const
251251
{
252-
if (!m_timer.IsRunning ())
252+
if (!m_timer.IsPending ())
253253
{
254254
cur_value->it_value.tv_sec = 0;
255255
cur_value->it_value.tv_nsec = 0;

0 commit comments

Comments
 (0)