3ae11e89d561a9d21ff41c3086745429b5193a7a
[senf.git] / Scheduler / Binding.cti
1 // $Id$
2 //
3 // Copyright (C) 2008 
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the
17 // Free Software Foundation, Inc.,
18 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20 /** \file
21     \brief Binding inline template implementation */
22
23 //#include "Binding.ih"
24
25 // Custom includes
26
27 #define prefix_ inline
28 ///////////////////////////////cti.p///////////////////////////////////////
29
30 template <class Handle>
31 prefix_ senf::SchedulerBinding::SchedulerBinding(Handle const & handle,
32                                                  Scheduler::FdCallback cb, int eventMask,
33                                                  bool enabled)
34     : fd_ (retrieve_filehandle(handle)), cb_ (cb), eventMask_ (eventMask), enabled_ (false)
35 {
36     if (enabled)
37         enable();
38 }
39
40 ///////////////////////////////cti.e///////////////////////////////////////
41 #undef prefix_
42
43 \f
44 // Local Variables:
45 // mode: c++
46 // fill-column: 100
47 // comment-column: 40
48 // c-file-style: "senf"
49 // indent-tabs-mode: nil
50 // ispell-local-dictionary: "american"
51 // compile-command: "scons -u test"
52 // End: