ARB
|
Go to the source code of this file.
Classes | |
struct | gb_cache_entry |
Functions | |
bool | entry_is_linked (gb_cache &cache, gb_cache_idx index) |
gb_cache_entry & | unlink_cache_entry (gb_cache &cache, gb_cache_idx index) |
void | link_cache_entry_to_top (gb_cache &cache, gb_cache_idx index) |
void | flush_cache_entry (gb_cache &cache, gb_cache_idx index) |
char * | gb_read_cache (GBENTRY *gbe) |
void | gb_free_cache (GB_MAIN_TYPE *Main, GBENTRY *gbe) |
static void | gb_uncache (GBCONTAINER *gbc) |
void | gb_uncache (GBENTRY *gbe) |
void | gb_uncache (GBDATA *gbd) |
void | GB_flush_cache (GBDATA *gbd) |
static char * | cache_free_some_memory (gb_cache &cache, size_t needed_mem) |
char * | gb_alloc_cache_index (GBENTRY *gbe, size_t size) |
char * | GB_set_cache_size (GBDATA *gbd, size_t size) |
|
inline |
Definition at line 29 of file adcache.cxx.
References gb_cache::entries, gb_cache::newest_entry, gb_cache_entry::next, gb_cache::oldest_entry, and gb_cache_entry::prev.
Referenced by flush_cache_entry(), link_cache_entry_to_top(), and unlink_cache_entry().
|
inline |
Definition at line 36 of file adcache.cxx.
References gb_cache::entries, entry_is_linked(), gb_assert, gb_cache::newest_entry, gb_cache_entry::next, gb_cache::oldest_entry, and gb_cache_entry::prev.
Referenced by cache_free_some_memory(), gb_free_cache(), and gb_read_cache().
|
inline |
Definition at line 55 of file adcache.cxx.
References gb_cache::big_data_min_size, gb_cache::entries, entry_is_linked(), gb_assert, gb_cache::newest_entry, gb_cache_entry::next, gb_cache::oldest_entry, gb_cache_entry::prev, and gb_cache_entry::sizeof_data.
Referenced by gb_alloc_cache_index(), and gb_read_cache().
|
inline |
Definition at line 80 of file adcache.cxx.
References GBENTRY::cache_index, gb_cache_entry::data, gb_cache::entries, entry_is_linked(), gb_cache::firstfree_entry, gb_assert, gb_cache_entry::gbe, GBS_incr_hash(), GBS_read_hash(), GBS_write_hash(), gb_cache_entry::next, gb_cache_entry::sizeof_data, and gb_cache::sum_data_size.
Referenced by cache_free_some_memory(), gb_free_cache(), and gb_read_cache().
Definition at line 179 of file adcache.cxx.
References GB_MAIN_TYPE::cache, GBENTRY::cache_index, gb_cache_entry::clock, gb_cache_entry::data, flush_cache_entry(), gb_assert, GB_MAIN(), gb_cache_entry::gbe, link_cache_entry_to_top(), NULp, unlink_cache_entry(), and GBDATA::update_date().
Referenced by GB_read_bits_pntr(), and GB_read_pntr().
void gb_free_cache | ( | GB_MAIN_TYPE * | Main, |
GBENTRY * | gbe | ||
) |
Definition at line 204 of file adcache.cxx.
References GB_MAIN_TYPE::cache, GBENTRY::cache_index, flush_cache_entry(), and unlink_cache_entry().
Referenced by gb_pre_delete_entry(), and gb_uncache().
|
static |
Definition at line 221 of file adcache.cxx.
References GB_child(), and GB_nextChild().
Referenced by gb_abort_entry(), GB_flush_cache(), gb_save_extern_data_in_ts__and_uncache(), and gb_uncache().
void gb_uncache | ( | GBENTRY * | gbe | ) |
Definition at line 215 of file adcache.cxx.
References gb_free_cache(), and GB_MAIN().
|
inline |
Definition at line 217 of file adcache.cxx.
References GBDATA::as_container(), GBDATA::as_entry(), gb_uncache(), and GBDATA::is_container().
void GB_flush_cache | ( | GBDATA * | gbd | ) |
Definition at line 226 of file adcache.cxx.
References gb_uncache().
Referenced by GB_read_bits_pntr().
Definition at line 231 of file adcache.cxx.
References gb_cache_entry::data, gb_cache::firstfree_entry, flush_cache_entry(), gb_assert, long, gb_cache::max_data_size, NULp, gb_cache::oldest_entry, gb_cache_entry::sizeof_data, gb_cache::sum_data_size, and unlink_cache_entry().
Referenced by gb_alloc_cache_index().
Definition at line 260 of file adcache.cxx.
References ARB_alloc(), ARB_strdup(), GB_MAIN_TYPE::cache, cache_free_some_memory(), GBENTRY::cache_index, gb_cache_entry::clock, gb_cache_entry::data, gb_cache::entries, gb_cache::firstfree_entry, gb_assert, GB_get_db_path(), GB_MAIN(), gb_cache_entry::gbe, link_cache_entry_to_top(), gb_cache_entry::next, gb_cache_entry::sizeof_data, gb_cache::sum_data_size, and GBDATA::update_date().
Referenced by GB_read_bits_pntr(), and GB_read_pntr().
Definition at line 294 of file adcache.cxx.
References gb_cache::big_data_min_size, GB_MAIN_TYPE::cache, GB_MAIN(), gb_cache::max_data_size, and NULp.
Referenced by startup_sequence_cb().