Mercurial > urweb
diff 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 |
line wrap: on
line diff
--- a/include/urweb/types_cpp.h Fri Nov 13 01:05:22 2015 -0500 +++ b/include/urweb/types_cpp.h Fri Nov 13 11:03:09 2015 -0500 @@ -133,7 +133,8 @@ typedef struct uw_Sqlcache_Entry uw_Sqlcache_Entry; typedef struct uw_Sqlcache_Cache { - pthread_rwlock_t lock; + pthread_rwlock_t lockOut; + pthread_rwlock_t lockIn; uw_Sqlcache_Entry *table; unsigned long timeInvalid; unsigned long timeNow;