Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::geode::GpuWaitTestHooks Struct Reference

Test seams for BoundedGpuWait. Production callers pass none; tests inject a fake clock and a sleep recorder so timeout behavior is verified deterministically and without real sleeping. More...

#include "donner/svg/renderer/geode/GeodeGpuWait.h"

Public Attributes

std::function< std::chrono::steady_clock::time_point()> now
 Clock override. Defaults to std::chrono::steady_clock::now.
std::function< void(std::chrono::microseconds)> sleep
 Sleep override. Defaults to std::this_thread::sleep_for.

Detailed Description

Test seams for BoundedGpuWait. Production callers pass none; tests inject a fake clock and a sleep recorder so timeout behavior is verified deterministically and without real sleeping.

Member Data Documentation

◆ now

std::function<std::chrono::steady_clock::time_point()> donner::geode::GpuWaitTestHooks::now

Clock override. Defaults to std::chrono::steady_clock::now.

◆ sleep

std::function<void(std::chrono::microseconds)> donner::geode::GpuWaitTestHooks::sleep

Sleep override. Defaults to std::this_thread::sleep_for.


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