21#include "usb/internal/TaskQueue.h"
22#include "platform/Callback.h"
23#include "LinkedList.h"
void attach(mbed::Callback< void()> cb)
Attach a callback indicating that this queue needs to be processed.
PolledQueue(mbed::Callback< void()> cb=nullptr)
Create a PolledQueue.
virtual void cancel(TaskBase *event)
Cancel an in-flight event.
void dispatch()
Process all the events in this queue.
virtual void post(TaskBase *event)
Add this event to the queue for execution.
Callback class based on template specialization.