~ubuntu-branches/ubuntu/vivid/libgwenhywfar/vivid

« back to all changes in this revision

Viewing changes to src/base/multicache_p.h

  • Committer: Package Import Robot
  • Author(s): Micha Lenk
  • Date: 2013-08-21 20:27:23 UTC
  • mfrom: (1.5.3)
  • Revision ID: package-import@ubuntu.com-20130821202723-79fxx94wm33l9omq
Tags: 4.7.0beta-1
* New upstream release
* Updated debian/libgwenhywfar60.symbols.
* Add build-dep on libgpg-error-dev to fix a build log warning about indirect
  linkage to libgpg-error.so.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
  uint32_t param2;
53
53
  uint32_t param3;
54
54
  uint32_t param4;
 
55
  double param5;
55
56
};
56
57
 
57
58
 
79
80
static uint32_t GWEN_MultiCache_Entry_GetParam4(const GWEN_MULTICACHE_ENTRY *e);
80
81
static void GWEN_MultiCache_Entry_SetParam4(GWEN_MULTICACHE_ENTRY *e, uint32_t i);
81
82
 
 
83
static double GWEN_MultiCache_Entry_GetParam5(const GWEN_MULTICACHE_ENTRY *e);
 
84
static void GWEN_MultiCache_Entry_SetParam5(GWEN_MULTICACHE_ENTRY *e, double d);
 
85
 
82
86
 
83
87
 
84
88
struct GWEN_MULTICACHE_TYPE {
88
92
 
89
93
  GWEN_MULTICACHE_TYPE_ATTACH_FN attachFn;
90
94
  GWEN_MULTICACHE_TYPE_FREE_FN freeFn;
 
95
 
 
96
  uint32_t _refCount;
91
97
};
92
98
 
93
99
static int GWEN_MultiCache_Type_AttachData(const GWEN_MULTICACHE_TYPE *ct, void *p);
103
109
  uint64_t maxSize;
104
110
  uint64_t currentSize;
105
111
  uint64_t maxSizeUsed;
 
112
  uint64_t cacheHits;
 
113
  uint64_t cacheMisses;
 
114
  uint64_t cacheDrops;
 
115
 
 
116
  uint32_t _refCount;
106
117
};
107
118
 
108
119
 
112
123
static void GWEN_MultiCache_ReleaseEntriesForType(GWEN_MULTICACHE *mc, GWEN_MULTICACHE_TYPE *ct);
113
124
static void GWEN_MultiCache_UsingEntry(GWEN_MULTICACHE *mc, GWEN_MULTICACHE_ENTRY *e);
114
125
 
 
126
static void GWEN_MultiCache_IncCacheHits(GWEN_MULTICACHE *mc);
 
127
static void GWEN_MultiCache_IncCacheMisses(GWEN_MULTICACHE *mc);
115
128
 
116
129
 
117
130
#endif