Mercurial > urweb
comparison include/urweb/types_cpp.h @ 2288:98f96a976ede
Finish locking, but it's not yet tested rigorously.
author | Ziv Scully <ziv@mit.edu> |
---|---|
date | Fri, 13 Nov 2015 11:03:09 -0500 |
parents | ad3ce1528f71 |
children |
comparison
equal
deleted
inserted
replaced
2287:08203f93dbc3 | 2288:98f96a976ede |
---|---|
131 } uw_Sqlcache_Value; | 131 } uw_Sqlcache_Value; |
132 | 132 |
133 typedef struct uw_Sqlcache_Entry uw_Sqlcache_Entry; | 133 typedef struct uw_Sqlcache_Entry uw_Sqlcache_Entry; |
134 | 134 |
135 typedef struct uw_Sqlcache_Cache { | 135 typedef struct uw_Sqlcache_Cache { |
136 pthread_rwlock_t lock; | 136 pthread_rwlock_t lockOut; |
137 pthread_rwlock_t lockIn; | |
137 uw_Sqlcache_Entry *table; | 138 uw_Sqlcache_Entry *table; |
138 unsigned long timeInvalid; | 139 unsigned long timeInvalid; |
139 unsigned long timeNow; | 140 unsigned long timeNow; |
140 size_t numKeys; | 141 size_t numKeys; |
141 UT_hash_handle hh; | 142 UT_hash_handle hh; |