| /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| * Copyright (C) 2014 Named Data Networking Project |
| * See COPYING for copyright and distribution information. |
| #ifndef NFD_CORE_SCHEDULER_HPP |
| #define NFD_CORE_SCHEDULER_HPP |
| #include <ndn-cpp-dev/util/scheduler.hpp> |
| * \brief Opaque type (shared_ptr) representing ID of a scheduled event |
| // TODO delete this after transition |
| using scheduler::Scheduler; |
| using scheduler::EventId; |
| // TODO delete this after transition |
| schedule(const time::Duration& after, const Scheduler::Event& event) |
| return getGlobalScheduler().scheduleEvent(after, event); |
| cancel(const EventId& eventId) |
| getGlobalScheduler().cancelEvent(eventId); |
| #endif // NFD_CORE_SCHEDULER_HPP |