Add a callback to be executed. Callbacks are executed serially and memory is release-acquire consistent between callback executions. Practically, this means that callbacks can behave as if they are executed in order by a single thread.
Declared in <scheduler.h>
[[requires_capability(0x7f2e20c05ce8)]]
virtual
void
insert(std::function<void()> func) override;
| Name | Description |
|---|---|
| func | The callback to enqueue for serial execution. |