Blender
V3.3
|
Public Attributes | |
ThreadMutex | lock |
char | main_name [FILE_MAX] |
Main * | current_main |
struct FileList * | filelist |
bool | only_main_data |
struct FileList * | tmp_filelist |
Definition at line 3528 of file filelist.c.
Main* FileListReadJob::current_main |
Definition at line 3531 of file filelist.c.
Referenced by filelist_asset_library_path(), filelist_readjob_asset_library(), filelist_readjob_main_assets_add_items(), and filelist_readjob_start().
struct FileList* FileListReadJob::filelist |
Definition at line 3532 of file filelist.c.
Referenced by filelist_asset_library_path(), filelist_readjob_endjob(), filelist_readjob_load_asset_library_data(), filelist_readjob_start(), filelist_readjob_startjob(), and filelist_readjob_update().
ThreadMutex FileListReadJob::lock |
Definition at line 3529 of file filelist.c.
Referenced by filelist_readjob_append_entries(), filelist_readjob_free(), filelist_readjob_start(), filelist_readjob_startjob(), and filelist_readjob_update().
char FileListReadJob::main_name[FILE_MAX] |
Definition at line 3530 of file filelist.c.
Referenced by filelist_readjob_recursive_dir_add_items(), and filelist_readjob_start().
bool FileListReadJob::only_main_data |
Set to request a partial read that only adds files representing Main data (IDs). Used when Main may have received changes of interest (e.g. asset removed or renamed).
Definition at line 3535 of file filelist.c.
Referenced by filelist_readjob_asset_library(), filelist_readjob_is_partial_read(), and filelist_readjob_start().
struct FileList* FileListReadJob::tmp_filelist |
Shallow copy of filelist for thread-safe access.
The job system calls filelist_readjob_update which moves any read file from tmp_filelist into filelist in a thread-safe way.
tmp_filelist also keeps an AssetLibrary *
so that it can be loaded in the same thread, and moved to filelist once all categories are loaded.
NOTE: tmp_filelist is freed in filelist_readjob_free, so any copied pointers need to be set to NULL to avoid double-freeing them.
Definition at line 3547 of file filelist.c.
Referenced by filelist_asset_library_path(), filelist_readjob_append_entries(), filelist_readjob_asset_library(), filelist_readjob_do(), filelist_readjob_free(), filelist_readjob_load_asset_library_data(), filelist_readjob_main_assets(), filelist_readjob_main_assets_add_items(), filelist_readjob_recursive_dir_add_items(), filelist_readjob_startjob(), and filelist_readjob_update().