// $Id$
//
-// Copyright (C) 2006
+// Copyright (C) 2006
// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
// Stefan Bund <stefan.bund@fokus.fraunhofer.de>
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Definition of inline template functions
+/** \file
+ \brief Scheduler inline template implementation
+ */
//#include "Scheduler.ih"
///////////////////////////////cti.p///////////////////////////////////////
template <class Handle>
-prefix_ void satcom::lib::Scheduler::add(Handle const & handle,
+prefix_ void senf::Scheduler::add(Handle const & handle,
typename GenericCallback<Handle>::Callback const & cb,
- EventId eventMask)
+ int eventMask)
{
// retrieve_filehandle is found via ADL
- do_add(retrieve_filehandle(handle),boost::bind(cb,handle,_1),eventMask);
+ SimpleCallback scb (boost::bind(cb,handle,_1));
+ int fd = retrieve_filehandle(handle);
+ do_add(fd,scb,eventMask);
}
template <class Handle>
-prefix_ void satcom::lib::Scheduler::remove(Handle const & handle, EventId eventMask)
+prefix_ void senf::Scheduler::remove(Handle const & handle, int eventMask)
{
// retrieve_filehandle is found via ADL
do_remove(retrieve_filehandle(handle),eventMask);
\f
// Local Variables:
// mode: c++
-// c-file-style: "satcom"
+// fill-column: 100
+// c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
+// compile-command: "scons -u test"
+// comment-column: 40
// End: