Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::browser::BrowserGpuTaskQueue Class Reference

Accessed exclusively by the GPU owner. New work cannot extend an executing batch. More...

#include "donner/gpu/browser/BrowserGpuTaskQueue.h"

Public Member Functions

void enqueue (BrowserGpuTask &task)
 Append a live, currently unqueued task.
std::size_t executeBatch ()
 Execute the current batch in FIFO order, returning its size. Reentrant work stays queued.
bool empty () const
 Whether every queued callback has been handed off for execution.

Detailed Description

Accessed exclusively by the GPU owner. New work cannot extend an executing batch.

Member Function Documentation

◆ enqueue()

void donner::gpu::browser::BrowserGpuTaskQueue::enqueue ( BrowserGpuTask & task)
inline

Append a live, currently unqueued task.

Parameters
taskBorrowed until its callback runs.

The documentation for this class was generated from the following file: