Blender V5.0
GHOST_TimerManager.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9
10#pragma once
11
12#include <vector>
13
14#include "GHOST_Types.h"
15
16class GHOST_TimerTask;
17
24 public:
29
34
39 uint32_t getNumTimers();
40
46
54
62
69
75 bool fireTimers(uint64_t time);
76
83 bool fireTimer(uint64_t time, GHOST_TimerTask *task);
84
85 protected:
89 void disposeTimers();
90
91 using TTimerVector = std::vector<GHOST_TimerTask *>;
94
95 MEM_CXX_CLASS_ALLOC_FUNCS("GHOST:GHOST_TimerManager")
96};
GHOST_TSuccess
Definition GHOST_Types.h:57
unsigned long long int uint64_t
bool fireTimers(uint64_t time)
GHOST_TSuccess removeTimer(GHOST_TimerTask *timer)
bool fireTimer(uint64_t time, GHOST_TimerTask *task)
bool getTimerFound(GHOST_TimerTask *timer)
std::vector< GHOST_TimerTask * > TTimerVector
GHOST_TSuccess addTimer(GHOST_TimerTask *timer)
wmTimer * timer