Blender V4.3
BLI_timer.h
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.h"
8
13#ifdef __cplusplus
14extern "C" {
15#endif
16
22typedef double (*BLI_timer_func)(uintptr_t uuid, void *user_data);
23typedef void (*BLI_timer_data_free)(uintptr_t uuid, void *user_data);
24
25/* `func(...) < 0`: The timer will be removed.
26 * `func(...) >= 0`: The function will be called again in that many seconds. */
28 BLI_timer_func func,
29 void *user_data,
30 BLI_timer_data_free user_data_free,
31 double first_interval,
32 bool persistent);
33
35
38
40void BLI_timer_execute(void);
41
42void BLI_timer_free(void);
43
44/* This function is to be called next to BKE_CB_EVT_LOAD_PRE, to make sure the module
45 * is properly configured for the new file. */
46void BLI_timer_on_file_load(void);
47
48#ifdef __cplusplus
49}
50#endif
bool BLI_timer_is_registered(uintptr_t uuid)
Definition BLI_timer.c:73
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.c:34
void(* BLI_timer_data_free)(uintptr_t uuid, void *user_data)
Definition BLI_timer.h:23
bool BLI_timer_unregister(uintptr_t uuid)
Definition BLI_timer.c:61
void BLI_timer_free(void)
Definition BLI_timer.c:124
double(* BLI_timer_func)(uintptr_t uuid, void *user_data)
Definition BLI_timer.h:22
void BLI_timer_on_file_load(void)
Definition BLI_timer.c:142
void BLI_timer_execute(void)
Definition BLI_timer.c:118
typedef double(DMatrix)[4][4]
_W64 unsigned int uintptr_t
Definition stdint.h:119