X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FScheduler%2FScheduler.hh;h=6ecef0d63203409d93e3f8580b1acc2829883b0b;hb=84f14a42f9993e186c7897ce0db021300e0a2d48;hp=69c30ab1fc2e54e7b451ae51f887e04b12fa5f5a;hpb=9cb871b939efe93e35dd96808d25089399acfc46;p=senf.git diff --git a/senf/Scheduler/Scheduler.hh b/senf/Scheduler/Scheduler.hh index 69c30ab..6ecef0d 100644 --- a/senf/Scheduler/Scheduler.hh +++ b/senf/Scheduler/Scheduler.hh @@ -105,12 +105,12 @@ namespace senf { \section sched_handlers Specifying handlers All handlers are specified as generic Boost.Function 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 + 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 Boost.Bind: + href="http://www.boost.org/doc/libs/release/libs/bind/bind.html">Boost.Bind: \code // Handle callback function void callback(UDPv4ClientSocketHandle handle, senf::Scheduler::EventId event) {..} @@ -125,7 +125,7 @@ namespace senf { \endcode To use member-functions as callbacks, use either Boost.Bind or senf::membind() + href="http://www.boost.org/doc/libs/release/libs/bind/bind.html">Boost.Bind or senf::membind() \code // e.g. in Foo::Foo() constructor: Foo::Foo() @@ -194,7 +194,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 Boost.PointerContainer + href="http://www.boost.org/doc/libs/release/libs/ptr_container/doc/ptr_container.html">Boost.PointerContainer for the pointer container library reference.