From: simon meiklejohn (simon_at_[hidden])
Date: 2005-12-22 13:04:56


From: "Christopher Kohlhoff" <chris_at_[hidden]>

> I'll investigate using something similar to my proposed custom
> allocation hook for this. E.g.:
>
> template <typename Handler>
> class handler_dispatch_hook
> {
> public:
> template <typename Demuxer, typename Function_Object>
> static void dispatch(Demuxer& d, Handler& h,
> Function_Object& f)
> {
> f();
> }
> };
> Or something like that anyway.

That looks fine. I suppose it would be possible for a given
program to mix custom and uncustomised demuxers using this
technique.
Whereas i can't see much of a use case for
doing different kinds of poll within a program, a mix of
callback strategies does seem genuinely useful.

> Hope you enjoy your break.

You too. You probably need one more than the rest of us.
Best of luck with the review.

Simon