aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/urweb/types_cpp.h
diff options
context:
space:
mode:
authorGravatar Ziv Scully <ziv@mit.edu>2015-11-12 11:44:21 -0500
committerGravatar Ziv Scully <ziv@mit.edu>2015-11-12 11:44:21 -0500
commitfd7375f584790047731686345c8ce6fedee71435 (patch)
tree5d4171f68119c83db900376b0a8ae9e89f42a485 /include/urweb/types_cpp.h
parented20a67a1268bf517cfdbc1a897b659dce38f3a4 (diff)
Actually use transactional machinery for flushes this time.
Diffstat (limited to 'include/urweb/types_cpp.h')
-rw-r--r--include/urweb/types_cpp.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/urweb/types_cpp.h b/include/urweb/types_cpp.h
index 3955dcc8..c4af2866 100644
--- a/include/urweb/types_cpp.h
+++ b/include/urweb/types_cpp.h
@@ -129,15 +129,11 @@ typedef struct uw_Sqlcache_Value {
unsigned long timeValid;
} uw_Sqlcache_Value;
-typedef struct uw_Sqlcache_Entry {
- char *key;
- uw_Sqlcache_Value *value;
- unsigned long timeInvalid;
- UT_hash_handle hh;
-} uw_Sqlcache_Entry;
+typedef struct uw_Sqlcache_Entry uw_Sqlcache_Entry;
typedef struct uw_Sqlcache_Cache {
- struct uw_Sqlcache_Entry *table;
+ //pthread_rwlock_t *lock;
+ uw_Sqlcache_Entry *table;
unsigned long timeInvalid;
unsigned long timeNow;
size_t numKeys;