2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
15 \brief FdManager inline non-template implementation */
17 //#include "FdManager.ih"
21 #define prefix_ inline
22 //-/////////////////////////////////////////////////////////////////////////////////////////////////
24 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 // senf::scheduler::FdManager
27 prefix_ senf::scheduler::detail::FdManager::FdManager()
28 : eventTime_ (senf::ClockService::now())
30 eventTimestamp_.update(eventTime_);
33 prefix_ bool senf::scheduler::detail::FdManager::set(int fd, int events, Event * entry)
35 return poller_.set(fd, events, entry);
38 prefix_ void senf::scheduler::detail::FdManager::remove(int fd)
43 prefix_ void senf::scheduler::detail::FdManager::timeout(int t)
48 prefix_ int senf::scheduler::detail::FdManager::timeout()
51 return poller_.timeout();
54 prefix_ senf::ClockService::clock_type const & senf::scheduler::detail::FdManager::eventTime()
60 prefix_ senf::CyclicTimestamp const & senf::scheduler::detail::FdManager::eventTimestamp()
63 return eventTimestamp_;
67 //-/////////////////////////////////////////////////////////////////////////////////////////////////
68 // senf::scheduler::detail::FdManager::Event
70 prefix_ senf::scheduler::detail::FdManager::Event::~Event()
73 //-/////////////////////////////////////////////////////////////////////////////////////////////////
81 // c-file-style: "senf"
82 // indent-tabs-mode: nil
83 // ispell-local-dictionary: "american"
84 // compile-command: "scons -u test"