Changeset 337 for eaccelerator/trunk/eaccelerator.h
- Timestamp:
- 08/20/07 22:57:00 (1 year ago)
- Files:
-
- eaccelerator/trunk/eaccelerator.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/eaccelerator.h
r330 r337 278 278 279 279 /* 280 * A mm_cache_entry is a bucket for one PHP script file.281 * Nested functions and classes which defined in the file goes282 * into the list of mm_fc_entry.280 * A ea_cache_entry is a bucket for one PHP script file. 281 * User functions and classes defined in the file go into 282 * the list of ea_fc_entry. 283 283 */ 284 284 typedef struct _ea_cache_entry { 285 285 struct _ea_cache_entry *next; 286 286 #ifdef EACCELERATOR_USE_INODE 287 dev_t st_dev; /* file's device */288 ino_t st_ino; /* file's inode */289 #else 290 unsigned int hv; /* hash value */287 dev_t st_dev; /* file's device */ 288 ino_t st_ino; /* file's inode */ 289 #else 290 unsigned int hv; /* hash value */ 291 291 #endif 292 292 off_t filesize; /* file size */ 293 time_t mtime; /* file last modification time */ 294 time_t ttl; /* expiration time */ 295 int size; /* entry size (bytes) */ 296 int nhits; /* hits count */ 297 int nreloads; /* count of reloads */ 298 int use_cnt; /* how many processes uses the entry */ 293 time_t mtime; /* file last modification time */ 294 time_t ttl; /* expiration time (updated on each hit) */ 295 time_t ts; /* timestamp of cache entry */ 296 unsigned int size; /* entry size (bytes) */ 297 unsigned int nhits; /* hits count */ 298 unsigned int nreloads; /* count of reloads */ 299 int use_cnt; /* how many processes uses the entry */ 299 300 ea_op_array *op_array; /* script's global scope code */ 300 301 ea_fc_entry *f_head; /* list of nested functions */ … … 318 319 319 320 /* 320 * Linked list of mm_cache_entry which are used by process/thread321 * Linked list of ea_cache_entry which are used by process/thread 321 322 */ 322 323 typedef struct _ea_used_entry { … … 344 345 int size; 345 346 time_t mtime; 347 time_t ts; 346 348 unsigned int crc32; 347 349 } ea_file_header;