17#define GET_TIME() BLI_time_now_seconds()
40 double first_interval,
44 timed_func->
func = func;
50 timed_func->
uuid = uuid;
93 if (timed_func.
next_time > current_time) {
112 if (timed_func->tag_removal) {
Platform independent time functions.
Read Blender memory allocation and freeing.
double(*) BLI_timer_func(uintptr_t uuid, void *user_data)
static void execute_functions_if_necessary()
static void remove_tagged_functions()
bool BLI_timer_is_registered(uintptr_t uuid)
static void clear_user_data(TimedFunction *timed_func)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
void BLI_freelinkN(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
static TimerContainer GlobalTimer
static void remove_non_persistent_functions()
void(*) BLI_timer_data_free(uintptr_t uuid, void *user_data)
void BLI_timer_on_file_load()
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)
_W64 unsigned int uintptr_t
bool BLI_timer_unregister(uintptr_t uuid)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
BLI_timer_data_free user_data_free
ListBaseT< TimedFunction > funcs