Mercurial > urweb
diff src/lru_cache.sml @ 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 |
line wrap: on
line diff
--- a/src/lru_cache.sml Thu Nov 12 10:06:07 2015 -0500 +++ b/src/lru_cache.sml Thu Nov 12 11:44:21 2015 -0500 @@ -65,6 +65,8 @@ in Print.box [string ("static uw_Sqlcache_Cache cacheStruct" ^ i ^ " = {"), + (* newline, *) + (* string " .lock = PTHREAD_RWLOCK_INITIALIZER,", *) newline, string " .table = NULL,", newline, @@ -134,7 +136,7 @@ newline, string (" char *ks[] = {" ^ revArgs ^ "};"), newline, - string (" uw_Sqlcache_flush(cache" ^ i ^ ", ks);"), + string (" uw_Sqlcache_flush(ctx, cache" ^ i ^ ", ks);"), newline, string " return uw_unit_v;", newline,