Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::browser::BrowserOwnerChannel Class Referenceabstract

How a thread reaches the browser GPU owner: whether its calls cross threads at all, and a synchronous run of one owner callback. More...

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

Public Member Functions

virtual bool crossesThreads () const =0
 Whether a call from the calling thread must cross to the owner. False without a registered owner and on the owner itself, where calls run at once.
virtual void run (void(*callback)(void *), void *context, uint32_t kind)=0
 Runs callback on the owner as one owner callback and returns once it has finished.

Detailed Description

How a thread reaches the browser GPU owner: whether its calls cross threads at all, and a synchronous run of one owner callback.

Member Function Documentation

◆ run()

virtual void donner::gpu::browser::BrowserOwnerChannel::run ( void(* callback )(void *),
void * context,
uint32_t kind )
pure virtual

Runs callback on the owner as one owner callback and returns once it has finished.

Parameters
callbackRuns context's work.
contextBorrowed until return.
kindDiagnostic category of the round trip, as the owner counts it.

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