Blender  V3.3
Public Attributes | List of all members
FileListReadJob Struct Reference

Public Attributes

ThreadMutex lock
 
char main_name [FILE_MAX]
 
Maincurrent_main
 
struct FileListfilelist
 
bool only_main_data
 
struct FileListtmp_filelist
 

Detailed Description

Definition at line 3528 of file filelist.c.

Member Data Documentation

◆ current_main

Main* FileListReadJob::current_main

◆ filelist

struct FileList* FileListReadJob::filelist

◆ lock

ThreadMutex FileListReadJob::lock

◆ main_name

char FileListReadJob::main_name[FILE_MAX]

◆ only_main_data

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().

◆ tmp_filelist

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().


The documentation for this struct was generated from the following file: