Changeset 1132 in svn for trunk/mod_cacher/xc_cacher.c


Ignore:
Timestamp:
2012-08-09T03:43:48Z (3 years ago)
Author:
Xuefer
Message:

cacher: hide more detail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_cacher/xc_cacher.c

    r1129 r1132  
    9494};
    9595/* }}} */
     96typedef struct { /* {{{ xc_cache_t: only cache info, not in shm */
     97    int cacheid;
     98    xc_hash_t  *hcache; /* hash to cacheid */
     99
     100    struct _xc_lock_t  *lck;
     101    struct _xc_shm_t   *shm; /* which shm contains us */
     102    struct _xc_mem_t   *mem; /* which mem contains us */
     103
     104    xc_hash_t  *hentry; /* hash settings to entry */
     105    xc_hash_t  *hphp;   /* hash settings to php */
     106    xc_cached_t *cached;
     107} xc_cache_t;
     108/* }}} */
    96109
    97110/* {{{ globals */
     
    150163    php->hits     = 0;
    151164    php->refcount = 0;
    152     stored_php = xc_processor_store_xc_entry_data_php_t(cache, php TSRMLS_CC);
     165    stored_php = xc_processor_store_xc_entry_data_php_t(cache->shm, cache->mem, php TSRMLS_CC);
    153166    if (stored_php) {
    154167        xc_php_add_unlocked(cache->cached, stored_php);
     
    297310    entry->atime = XG(request_time);
    298311    stored_entry = type == XC_TYPE_PHP
    299         ? (xc_entry_t *) xc_processor_store_xc_entry_php_t(cache, (xc_entry_php_t *) entry TSRMLS_CC)
    300         : (xc_entry_t *) xc_processor_store_xc_entry_var_t(cache, (xc_entry_var_t *) entry TSRMLS_CC);
     312        ? (xc_entry_t *) xc_processor_store_xc_entry_php_t(cache->shm, cache->mem, (xc_entry_php_t *) entry TSRMLS_CC)
     313        : (xc_entry_t *) xc_processor_store_xc_entry_var_t(cache->shm, cache->mem, (xc_entry_var_t *) entry TSRMLS_CC);
    301314    if (stored_entry) {
    302315        xc_entry_add_unlocked(cache->cached, entryslotid, stored_entry);
     
    32853298static PHP_MINIT_FUNCTION(xcache_cacher) /* {{{ */
    32863299{
    3287     char *env;
    32883300    zend_extension *ext;
    32893301    zend_llist_position lpos;
Note: See TracChangeset for help on using the changeset viewer.