Ignore:
Timestamp:
2012-07-27T17:10:17+02:00 (2 years ago)
Author:
moo
Message:

const some mem handlers
split non-shared data from shm
make editor goto file correctly

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1818devel.ini 
        1919devel.php 
         20devel.fpm 
        2021.gdb_history 
        2122include 
  • trunk/mod_cacher/xc_cache.h

    r1051 r1062  
    1111typedef ulong xc_hash_value_t; 
    1212typedef struct _xc_hash_t xc_hash_t; 
     13typedef struct _xc_cached_t xc_cached_t; 
    1314typedef struct _xc_entry_t xc_entry_t; 
    1415typedef struct _xc_entry_data_php_t xc_entry_data_php_t; 
     
    1617struct _xc_lock_t; 
    1718struct _xc_shm_t; 
    18 /* {{{ xc_cache_t */ 
     19/* {{{ xc_cache_t: only cache info, not in shm */ 
    1920typedef struct { 
    2021    int cacheid; 
    2122    xc_hash_t  *hcache; /* hash to cacheid */ 
    2223 
    23     time_t     compiling; 
    24     zend_ulong updates; 
    25     zend_ulong hits; 
    26     zend_ulong clogs; 
    27     zend_ulong ooms; 
    28     zend_ulong errors; 
    2924    struct _xc_lock_t  *lck; 
    3025    struct _xc_shm_t   *shm; /* which shm contains us */ 
    3126    struct _xc_mem_t   *mem; /* which mem contains us */ 
    3227 
    33     xc_entry_t **entries; 
    34     int entries_count; 
    35     xc_entry_data_php_t **phps; 
    36     int phps_count; 
    37     xc_entry_t *deletes; 
    38     int deletes_count; 
    3928    xc_hash_t  *hentry; /* hash settings to entry */ 
    4029    xc_hash_t  *hphp;   /* hash settings to php */ 
    41  
    42     time_t     last_gc_deletes; 
    43     time_t     last_gc_expires; 
    44  
    45     time_t     hits_by_hour_cur_time; 
    46     zend_uint  hits_by_hour_cur_slot; 
    47     zend_ulong hits_by_hour[24]; 
    48     time_t     hits_by_second_cur_time; 
    49     zend_uint  hits_by_second_cur_slot; 
    50     zend_ulong hits_by_second[5]; 
     30    xc_cached_t *cached; 
    5131} xc_cache_t; 
    5232/* }}} */ 
Note: See TracChangeset for help on using the changeset viewer.