15 using Func = void (*)(
void *);
16 Invoker(Func func) : func_(func) {}
18 void operator()() { func_(
this); }
24template <
typename T,
typename Invoker = Invoker>
25class InvokerAdapter :
public Invoker {
27 InvokerAdapter() : Invoker(&InvokerAdapter::invoke_) {}
30 static void invoke_(
void *self) {
static_cast<T *
>(self)->invoke(); }
33class WorkInvoker :
public Invoker {
35 using Invoker::Invoker;
36 SingleLinkEntry work_queue_entry_;
Intrusive single-linked and double-linked list implementations.
The main namespace for the Condy library.
Definition condy.hpp:28