diff options
author | August Mueller <gus@flyingmeat.com> | 2017-07-19 08:35:53 +0300 |
---|---|---|
committer | August Mueller <gus@flyingmeat.com> | 2017-07-19 08:35:53 +0300 |
commit | f92d183ea0911a6799e1e639b50fa1e64c59fe62 (patch) | |
tree | cac23d72b50e710001e32e713b472d0994fef185 /src | |
parent | 458031a2ca4593606fb35cd97db53ab6c0746661 (diff) |
Button things :(
Diffstat (limited to 'src')
-rw-r--r-- | src/sample/main.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sample/main.m b/src/sample/main.m index a10756d..eca86fc 100644 --- a/src/sample/main.m +++ b/src/sample/main.m @@ -1390,11 +1390,11 @@ void testPool(NSString *dbPath) { // if you want to see a deadlock, just uncomment this line and run: - //#define ONLY_USE_THE_POOL_IF_YOU_ARE_DOING_READS_OTHERWISE_YOULL_DEADLOCK_USE_FMDATABASEQUEUE_INSTEAD 1 +#define ONLY_USE_THE_POOL_IF_YOU_ARE_DOING_READS_OTHERWISE_YOULL_DEADLOCK_USE_FMDATABASEQUEUE_INSTEAD 1 #ifdef ONLY_USE_THE_POOL_IF_YOU_ARE_DOING_READS_OTHERWISE_YOULL_DEADLOCK_USE_FMDATABASEQUEUE_INSTEAD { - int ops = 16; + size_t ops = 16; dispatch_queue_t dqueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); |