X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=ent_skateshop.h;h=12cfd218e1b1675270673c552f262dba388c1c44;hb=b1d22bbb87583cea9fde7620eb1fc16189be5113;hp=ceefc8bd74d08b231b225cfb52ecb65fd2c0274b;hpb=f0677217ae486c01f0aba78aa5053e2a6273e4cc;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_skateshop.h b/ent_skateshop.h index ceefc8b..12cfd21 100644 --- a/ent_skateshop.h +++ b/ent_skateshop.h @@ -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 */