Mercurial > urweb
comparison include/urweb/types_cpp.h @ 2284:472b4504aef2
Actually use transactional machinery for flushes this time.
author | Ziv Scully <ziv@mit.edu> |
---|---|
date | Thu, 12 Nov 2015 11:44:21 -0500 |
parents | 75cb60a7f6f1 |
children | ad3ce1528f71 |
comparison
equal
deleted
inserted
replaced
2283:4afaab523213 | 2284:472b4504aef2 |
---|---|
127 char *result; | 127 char *result; |
128 char *output; | 128 char *output; |
129 unsigned long timeValid; | 129 unsigned long timeValid; |
130 } uw_Sqlcache_Value; | 130 } uw_Sqlcache_Value; |
131 | 131 |
132 typedef struct uw_Sqlcache_Entry { | 132 typedef struct uw_Sqlcache_Entry uw_Sqlcache_Entry; |
133 char *key; | |
134 uw_Sqlcache_Value *value; | |
135 unsigned long timeInvalid; | |
136 UT_hash_handle hh; | |
137 } uw_Sqlcache_Entry; | |
138 | 133 |
139 typedef struct uw_Sqlcache_Cache { | 134 typedef struct uw_Sqlcache_Cache { |
140 struct uw_Sqlcache_Entry *table; | 135 //pthread_rwlock_t *lock; |
136 uw_Sqlcache_Entry *table; | |
141 unsigned long timeInvalid; | 137 unsigned long timeInvalid; |
142 unsigned long timeNow; | 138 unsigned long timeNow; |
143 size_t numKeys; | 139 size_t numKeys; |
144 UT_hash_handle hh; | 140 UT_hash_handle hh; |
145 } uw_Sqlcache_Cache; | 141 } uw_Sqlcache_Cache; |