diff options
author | 2015-11-12 16:36:35 -0500 | |
---|---|---|
committer | 2015-11-12 16:36:35 -0500 | |
commit | 06464bd07cb1efbc9df4ca650978c14f4c20390a (patch) | |
tree | 412f14366e3baf7b31c9052cea1ac267fc1eb765 /include/urweb/types_cpp.h | |
parent | fd7375f584790047731686345c8ce6fedee71435 (diff) |
Fix committing multiple stores/flushes. Locking is WIP.
Diffstat (limited to 'include/urweb/types_cpp.h')
-rw-r--r-- | include/urweb/types_cpp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/urweb/types_cpp.h b/include/urweb/types_cpp.h index c4af2866..82f8d30a 100644 --- a/include/urweb/types_cpp.h +++ b/include/urweb/types_cpp.h @@ -121,6 +121,7 @@ typedef struct { // Caching +#include <pthread.h> #include "uthash.h" typedef struct uw_Sqlcache_Value { @@ -132,7 +133,7 @@ typedef struct uw_Sqlcache_Value { typedef struct uw_Sqlcache_Entry uw_Sqlcache_Entry; typedef struct uw_Sqlcache_Cache { - //pthread_rwlock_t *lock; + pthread_rwlock_t lock; uw_Sqlcache_Entry *table; unsigned long timeInvalid; unsigned long timeNow; |