Blender V5.3
BLI_timer.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2018 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include "BLI_sys_types.hh"
8
9namespace blender {
10
14
20typedef double (*BLI_timer_func)(uintptr_t uuid, void *user_data);
21typedef void (*BLI_timer_data_free)(uintptr_t uuid, void *user_data);
22
23/* `func(...) < 0`: The timer will be removed.
24 * `func(...) >= 0`: The function will be called again in that many seconds. */
26 BLI_timer_func func,
27 void *user_data,
28 BLI_timer_data_free user_data_free,
29 double first_interval,
30 bool persistent);
31
33
36
39
40void BLI_timer_free();
41
42/* This function is to be called next to BKE_CB_EVT_LOAD_PRE, to make sure the module
43 * is properly configured for the new file. */
45
46} // namespace blender
BMesh Iterators.
double(*) BLI_timer_func(uintptr_t uuid, void *user_data)
Definition BLI_timer.hh:20
void BLI_timer_free()
Definition BLI_timer.cc:126
bool BLI_timer_is_registered(uintptr_t uuid)
Definition BLI_timer.cc:75
void(*) BLI_timer_data_free(uintptr_t uuid, void *user_data)
Definition BLI_timer.hh:21
void BLI_timer_on_file_load()
Definition BLI_timer.cc:144
void BLI_timer_register(uintptr_t uuid, BLI_timer_func func, void *user_data, BLI_timer_data_free user_data_free, double first_interval, bool persistent)
Definition BLI_timer.cc:36
_W64 unsigned int uintptr_t
Definition BKE_text.h:120
bool BLI_timer_unregister(uintptr_t uuid)
Definition BLI_timer.cc:63
void BLI_timer_execute()
Definition BLI_timer.cc:120