minor fixes for clang++
[senf.git] / senf / Scheduler / Scheduler.hh
index 69c30ab..6c25cb6 100644 (file)
@@ -2,23 +2,28 @@
 //
 // Copyright (C) 2006
 // 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
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
+// The contents of this file are subject to the Fraunhofer FOKUS Public License
+// Version 1.0 (the "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at 
+// http://senf.berlios.de/license.html
 //
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
+// The Fraunhofer FOKUS Public License Version 1.0 is based on, 
+// but modifies the Mozilla Public License Version 1.1.
+// See the full license text for the amendments.
 //
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the
-// Free Software Foundation, Inc.,
-// 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+// Software distributed under the License is distributed on an "AS IS" basis, 
+// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 
+// for the specific language governing rights and limitations under the License.
+//
+// The Original Code is Fraunhofer FOKUS code.
+//
+// The Initial Developer of the Original Code is Fraunhofer-Gesellschaft e.V. 
+// (registered association), Hansastraße 27 c, 80686 Munich, Germany.
+// All Rights Reserved.
+//
+// Contributor(s):
+//   Stefan Bund <g0dil@berlios.de>
 
 /** \file
     \brief Scheduler public header
@@ -37,7 +42,7 @@
 #include "EventHook.hh"
 
 //#include "scheduler.mpp"
-///////////////////////////////hh.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 
 namespace senf {
 
@@ -60,7 +65,7 @@ namespace senf {
     The Scheduler is based on the RAII principle: Every event is represented by a class
     instance. The event is registered in the constructor and removed by the destructor of that
     instance. This implementation automatically links the lifetime of an event with the lifetime of
-    the object resposible for it's creation.
+    the object responsible for it's creation.
 
     Every event registration is represented by an instance of an event specific class:
 
@@ -69,8 +74,8 @@ namespace senf {
     \li senf::scheduler::SignalEvent for UNIX signal events
     \li senf::scheduler::EventHook for a special event hook
 
-    These instance are owned and managed by the user of the scheduler \e not by the scheduler so the
-    RAII concept can be used.
+    These instance are owned and managed by the user of the %scheduler \e not by the %scheduler so
+    the RAII concept can be used.
 
     \code
     class SomeServer
@@ -95,7 +100,7 @@ namespace senf {
     The event is defined as a class member variable. When the event member is initialized in the
     constructor, the event is automatically registered (except if the optional \a initiallyEnabled
     flag argument is set to \c false). The Destructor will automatically remove the event from the
-    scheduler and ensure, that no dead code is called accidentally.
+    %scheduler and ensure, that no dead code is called accidentally.
 
     The process is the same for the other event types or when registering multiple events. For
     detailed information on the constructor arguments and other features see the event class
@@ -105,12 +110,12 @@ namespace senf {
     \section sched_handlers Specifying handlers
 
     All handlers are specified as generic <a
-    href="http://www.boost.org/doc/html/function.html">Boost.Function</a> objects. This allows to
-    pass any callable as a handler. Depending on the type of handler, some additional arguments may
-    be passed to the handler by the %scheduler.
+    href="http://www.boost.org/doc/libs/release/libs/functional/index.html">Boost.Function</a>
+    objects. This allows to pass any callable as a handler. Depending on the type of handler,
+    some additional arguments may be passed to the handler by the %scheduler.
 
     If you need to pass additional information to your handler, use <a
-    href="http://www.boost.org/libs/bind/bind.html">Boost.Bind</a>:
+    href="http://www.boost.org/doc/libs/release/libs/bind/bind.html">Boost.Bind</a>:
     \code
     // Handle callback function
     void callback(UDPv4ClientSocketHandle handle, senf::Scheduler::EventId event) {..}
@@ -125,7 +130,7 @@ namespace senf {
     \endcode
 
     To use member-functions as callbacks, use either <a
-    href="http://www.boost.org/libs/bind/bind.html">Boost.Bind</a> or senf::membind()
+    href="http://www.boost.org/doc/libs/release/libs/bind/bind.html">Boost.Bind</a> or senf::membind()
     \code
     // e.g. in Foo::Foo() constructor:
     Foo::Foo()
@@ -141,7 +146,7 @@ namespace senf {
 
     \section sched_exec Executing the Scheduler
 
-    To enter the scheduler main-loop, call
+    To enter the %scheduler main-loop, call
 
     \code
     senf::scheduler::process();
@@ -194,7 +199,7 @@ namespace senf {
     container API. The only difference is, that all elements added to the container \e must be
     created via \c new and that the pointer containers themselves are \e not copyable (ok, they are,
     if the elements are cloneable ...). See <a
-    href="http://www.boost.org/doc/libs/1_36_0/libs/ptr_container/doc/ptr_container.html">Boost.PointerContainer</a>
+    href="http://www.boost.org/doc/libs/release/libs/ptr_container/doc/ptr_container.html">Boost.PointerContainer</a>
     for the pointer container library reference.
 
 
@@ -202,7 +207,7 @@ namespace senf {
 
     To secure against blocking callbacks, the %scheduler implementation includes a watchdog
     timer. This timer will produce a warning message on the standard error stream when a single
-    callback is executing for more than the watchdog timeout value. Since the scheduler
+    callback is executing for more than the watchdog timeout value. Since the %scheduler
     implementation is completely single threaded, we cannot terminate the callback but at least we
     can produce an informative message and optionally the program can be aborted.
 
@@ -337,7 +342,7 @@ namespace scheduler {
 
     /** \brief %scheduler specific time source for Utils/Logger framework
 
-        This time source may be used to provide timing information for log messages within the
+        This time source may be used to provide timing information for %log messages within the
         Utils/Logger framework. This time source will use Scheduler::eventTime() to provide timing
         information.
 
@@ -393,7 +398,7 @@ namespace scheduler {
 
 }}
 
-///////////////////////////////hh.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #include "Scheduler.cci"
 //#include "Scheduler.ct"
 //#include "Scheduler.cti"