Changeset 311 for trunk/xcache.h
- Timestamp:
- 12/09/2006 04:27:03 PM (2 years ago)
- Files:
-
- 1 modified
-
trunk/xcache.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.h
r309 r311 165 165 typedef zend_op_array *(zend_compile_file_t)(zend_file_handle *h, int type TSRMLS_DC); 166 166 167 typedef struct _xc_entry_t xc_entry_t; 168 typedef struct _xc_entry_data_php_t xc_entry_data_php_t; 167 169 /* {{{ xc_cache_t */ 168 typedef struct _xc_entry_t xc_entry_t;169 170 typedef struct { 170 171 int cacheid; … … 182 183 xc_entry_t **entries; 183 184 int entries_count; 185 xc_entry_data_php_t **phps; 186 int phps_count; 184 187 xc_entry_t *deletes; 185 188 int deletes_count; 186 xc_hash_t *hentry; /* hash to entry */ 189 xc_hash_t *hentry; /* hash settings to entry */ 190 xc_hash_t *hphp; /* hash settings to php */ 187 191 188 192 time_t last_gc_deletes; … … 235 239 #endif 236 240 typedef enum { XC_TYPE_PHP, XC_TYPE_VAR } xc_entry_type_t; 241 typedef char xc_md5sum_t[16]; 237 242 /* {{{ xc_entry_data_php_t */ 238 typedef struct { 243 struct _xc_entry_data_php_t { 244 xc_hash_value_t hvalue; /* hash of md5 */ 245 xc_entry_data_php_t *next; 246 xc_cache_t *cache; /* which cache it's on */ 247 248 xc_md5sum_t md5; /* md5sum of the source */ 249 zend_ulong refcount; /* count of entries referencing to this data */ 250 239 251 size_t sourcesize; 240 #ifdef HAVE_INODE 241 int device; /* the filesystem device */ 242 int inode; /* the filesystem inode */ 243 #endif 244 time_t mtime; /* the mtime of origin source file */ 252 zend_ulong hits; /* hits of this php */ 253 size_t size; 245 254 246 255 zend_op_array *op_array; … … 262 271 xc_autoglobal_t *autoglobals; 263 272 #endif 264 } xc_entry_data_php_t; 273 274 zend_bool have_references; 275 }; 265 276 /* }}} */ 266 277 /* {{{ xc_entry_data_var_t */ 267 278 typedef struct { 268 279 zval *value; 280 281 zend_bool have_references; 269 282 } xc_entry_data_var_t; 270 283 /* }}} */ … … 278 291 279 292 size_t size; 280 zend_ulong refcount; 293 zend_ulong refcount; /* count of instances holding this entry */ 281 294 zend_ulong hits; 282 295 time_t ctime; /* the ctime of this entry */ … … 295 308 } data; 296 309 297 zend_bool have_references; 310 time_t mtime; /* the mtime of origin source file */ 311 #ifdef HAVE_INODE 312 int device; /* the filesystem device */ 313 int inode; /* the filesystem inode */ 314 #endif 298 315 }; 299 316 /* }}} */

