|
Blender V4.5
|
#include "BLI_sys_types.h"Go to the source code of this file.
Typedefs | |
| typedef double(*) | BLI_timer_func(uintptr_t uuid, void *user_data) |
| typedef void(*) | BLI_timer_data_free(uintptr_t uuid, void *user_data) |
Functions | |
| 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) |
| bool | BLI_timer_is_registered (uintptr_t uuid) |
| bool | BLI_timer_unregister (uintptr_t uuid) |
| void | BLI_timer_execute (void) |
| void | BLI_timer_free (void) |
| void | BLI_timer_on_file_load (void) |
| typedef void(*) BLI_timer_data_free(uintptr_t uuid, void *user_data) |
Definition at line 19 of file BLI_timer.h.
| typedef double(*) BLI_timer_func(uintptr_t uuid, void *user_data) |
Definition at line 18 of file BLI_timer.h.
| void BLI_timer_execute | ( | void | ) |
Execute all registered functions that are due.
Definition at line 120 of file BLI_timer.cc.
References BLI_timer_execute(), execute_functions_if_necessary(), and remove_tagged_functions().
Referenced by BLI_timer_execute(), and wm_event_timers_execute().
| void BLI_timer_free | ( | void | ) |
Definition at line 126 of file BLI_timer.cc.
References BLI_timer_free(), TimerContainer::funcs, GlobalTimer, LISTBASE_FOREACH, and remove_tagged_functions().
Referenced by BLI_timer_free(), and WM_exit_ex().
| bool BLI_timer_is_registered | ( | uintptr_t | uuid | ) |
Definition at line 73 of file BLI_timer.cc.
References BLI_timer_is_registered(), TimerContainer::funcs, GlobalTimer, and LISTBASE_FOREACH.
Referenced by BLI_timer_is_registered(), and bpy_app_timers_is_registered().
| void BLI_timer_on_file_load | ( | void | ) |
Definition at line 144 of file BLI_timer.cc.
References BLI_timer_on_file_load(), and remove_non_persistent_functions().
Referenced by BLI_timer_on_file_load(), and wm_file_read_pre().
| 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 at line 34 of file BLI_timer.cc.
References BLI_addtail(), BLI_timer_register(), TimedFunction::func, TimerContainer::funcs, GET_TIME, GlobalTimer, MEM_callocN(), TimedFunction::next_time, TimedFunction::persistent, TimedFunction::tag_removal, TimedFunction::user_data, TimedFunction::user_data_free, and TimedFunction::uuid.
Referenced by BLI_timer_register(), and bpy_app_timers_register().
| bool BLI_timer_unregister | ( | uintptr_t | uuid | ) |
Returns False when the timer does not exist (anymore).
Definition at line 61 of file BLI_timer.cc.
References BLI_timer_unregister(), clear_user_data(), TimerContainer::funcs, GlobalTimer, and LISTBASE_FOREACH.
Referenced by BLI_timer_unregister(), and bpy_app_timers_unregister().