|
|
@@ -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
|
|
|
{
|
|
|
|
|
|
- size_t ops = 16;
|
|
|
+ int ops = 16;
|
|
|
|
|
|
dispatch_queue_t dqueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
|
|
|
|