21#include "usb/internal/TaskBase.h"
22#include "platform/Callback.h"
23#include "mbed_critical.h"
25#define MBED_MAX_TASK_SIZE 32
120 return task->_start(dest, size);
virtual uint32_t size()=0
Size of buffer required for TaskBase::start.
static uint32_t task_size(TaskBase *task)
Get the size required to run this task.
virtual void cancel(TaskBase *event)=0
Cancel an in-flight event.
static TaskBase::run_callback_t task_start(TaskBase *task, uint8_t *dest, uint32_t size)
Start processing this event by copying out its data.
virtual ~TaskQueue()
Destroy a TaskQueue.
virtual void post(TaskBase *event)=0
Add this event to the queue for execution.
static void task_finish(TaskBase *task)
Finish processing this event.
TaskQueue()
Create a TaskQueue.