diff options
author | Ziv Scully <ziv@mit.edu> | 2015-11-12 11:44:21 -0500 |
---|---|---|
committer | Ziv Scully <ziv@mit.edu> | 2015-11-12 11:44:21 -0500 |
commit | fd7375f584790047731686345c8ce6fedee71435 (patch) | |
tree | 5d4171f68119c83db900376b0a8ae9e89f42a485 /src/lru_cache.sml | |
parent | ed20a67a1268bf517cfdbc1a897b659dce38f3a4 (diff) |
Actually use transactional machinery for flushes this time.
Diffstat (limited to 'src/lru_cache.sml')
-rw-r--r-- | src/lru_cache.sml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lru_cache.sml b/src/lru_cache.sml index d4da2849..9d65420b 100644 --- a/src/lru_cache.sml +++ b/src/lru_cache.sml @@ -65,6 +65,8 @@ fun setupQuery {index, params} = 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 @@ fun setupQuery {index, params} = 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, |