LRU dummy
[carveJwlIkooP6JGAAIwe30JlM.git] / ent_skateshop.h
index ceefc8bd74d08b231b225cfb52ecb65fd2c0274b..12cfd218e1b1675270673c552f262dba388c1c44 100644 (file)
@@ -31,9 +31,12 @@ struct{
       addon_reg *reg_ptr;
 
       u32 ref_count;
-      double last_use_time;
+      
+      struct cache_board *left, *right;
+      /* double last_use_time; */
    }
-   *cache;
+   *cache, *cache_head, *cache_tail;
+
    SDL_SpinLock sl_cache_access;
 
    struct shop_view_slot{
@@ -60,5 +63,6 @@ static global_skateshop={.render={.reg_id=0xffffffff,.world_reg=0xffffffff}};
 VG_STATIC void global_skateshop_exit(void);
 VG_STATIC void watch_cache_board( struct cache_board *ptr );
 VG_STATIC void unwatch_cache_board( struct cache_board *ptr );
+VG_STATIC struct cache_board *lru_volatile_cache_board(void);
 
 #endif /* ENT_SKATESHOP_H */