// $Id$
//
// Copyright (C) 2006
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-// Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
+// Stefan Bund <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
//#include "Scheduler.ih"
// Custom includes
+#include <boost/format.hpp>
#define prefix_ inline
///////////////////////////////cci.p///////////////////////////////////////
+// public members
+
+prefix_ senf::Scheduler::Scheduler & senf::Scheduler::instance()
+{
+ static Scheduler instance;
+ return instance;
+}
+
prefix_ void senf::Scheduler::terminate()
{
terminate_ = true;
}
-prefix_ int senf::retrieve_filehandle(int fd)
+prefix_ senf::ClockService::clock_type senf::Scheduler::eventTime()
+ const
+{
+ return scheduler::FdManager::instance().eventTime();
+}
+
+prefix_ void senf::Scheduler::taskTimeout(unsigned ms)
{
- return fd;
+ scheduler::FIFORunner::instance().taskTimeout(ms);
}
+prefix_ unsigned senf::Scheduler::taskTimeout()
+ const
+{
+ return scheduler::FIFORunner::instance().taskTimeout();
+}
+
+prefix_ unsigned senf::Scheduler::hangCount()
+ const
+{
+ return scheduler::FIFORunner::instance().hangCount();
+}
+
+prefix_ senf::Scheduler::Scheduler()
+ : terminate_ (false)
+{}
+
///////////////////////////////cci.e///////////////////////////////////////
#undef prefix_
// c-file-style: "senf"
// indent-tabs-mode: nil
// ispell-local-dictionary: "american"
+// compile-command: "scons -u test"
+// comment-column: 40
// End: