hash table for caching username lookups, etc.

This commit is contained in:
Doug MacEachern committed 2004-12-04 22:44:55 +00:00
1 parent d6cb75e1d2
commit f932402774
2 files changed
+94

No files matched your search

+13
View File
@@ -69,4 +69,17 @@ double sigar_file_system_usage_calc_used(sigar_t *sigar,
void sigar_cpu_model_adjust(sigar_t *sigar, sigar_cpu_info_t *info);
typedef struct sigar_cache_entry_t sigar_cache_entry_t;
struct sigar_cache_entry_t {
sigar_cache_entry_t *next;
sigar_uint64_t id;
void *value;
};
typedef struct {
sigar_cache_entry_t **entries;
unsigned int count, size;
} sigar_cache_t;
#endif /* SIGAR_UTIL_H */