// $Id$
//
-// Copyright (C) 2008
+// Copyright (C) 2008
// Fraunhofer Institute for Open Communication Systems (FOKUS)
// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
prefix_ senf::scheduler::detail::EventManager::EventManager()
{
#ifndef SENF_DISABLE_CONSOLE
- consoleDir_().add("events", senf::membind(&EventManager::listEvents, this))
+ consoleDir_().add("events", senf::console::factory::Command(
+ senf::membind(&EventManager::listEvents, this))
.doc("List all scheduler events sorted by priority\n"
"\n"
"Columns:\n"
" R runnable\n"
" W waiting\n"
" - event disabled\n"
- " INFO further event specific information");
+ " INFO further event specific information")
+ );
senf::console::sysdir().add("scheduler", consoleDir_());
#endif
FIFORunner::iterator i (FIFORunner::instance().begin());
FIFORunner::iterator const i_end (FIFORunner::instance().end());
for (; i != i_end; ++i)
- os << fmt
+ os << fmt
% i->type()
- % i->name()
+ % i->name()
% reinterpret_cast<unsigned long>(&(*i))
% i->runCount()
% (i->runnable() ? "R" : "W")
if (! i->enabled())
os << fmt
% i->type()
- % i->name()
+ % i->name()
% reinterpret_cast<unsigned long>(&(*i))
% i->runCount()
% "-"