Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Core::TimerManager::TimerHandle Struct Reference

Opaque identifier for a scheduled timer. More...

#include <TimerManager.h>

Public Member Functions

 operator bool () const
 Returns true when this handle stores a non-zero timer id.

Public Attributes

uint64_t id = 0
 Unique timer id, or 0 for an invalid handle.

Detailed Description

Opaque identifier for a scheduled timer.

A default-constructed handle is invalid and is ignored by cancelTimer(). Handles become stale after the timer fires, after the timer is canceled, or after clear() removes all pending timers.

Definition at line 41 of file TimerManager.h.

Member Function Documentation

◆ operator bool()

Engine::Core::TimerManager::TimerHandle::operator bool ( ) const
inlineexplicitnodiscard

Returns true when this handle stores a non-zero timer id.

This check does not prove that the referenced timer is still pending.

Returns
true when id is not zero.

Definition at line 52 of file TimerManager.h.

Member Data Documentation

◆ id

uint64_t Engine::Core::TimerManager::TimerHandle::id = 0

Unique timer id, or 0 for an invalid handle.

Definition at line 43 of file TimerManager.h.


The documentation for this struct was generated from the following file:
  • /workspace/magerbeton/gl3-vulkan/code/Engine/include/Engine/Core/TimerManager.h