From 54e98030800b7ff278e680fd2f80c9731f4d752a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Wed, 21 Sep 2016 09:11:23 +0200 Subject: [PATCH] Rename SchedulingWatchdog.makeSerializedQueueAllowing(database:) to SchedulingWatchdog.makeSerializedQueue(allowingDatabase:) --- GRDB/Core/SchedulingWatchdog.swift | 4 ++-- GRDB/Core/SerializedDatabase.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GRDB/Core/SchedulingWatchdog.swift b/GRDB/Core/SchedulingWatchdog.swift index 8bb4bb833..280efbcbc 100644 --- a/GRDB/Core/SchedulingWatchdog.swift +++ b/GRDB/Core/SchedulingWatchdog.swift @@ -7,7 +7,7 @@ /// https://github.com/groue/GRDB.swift/issues/55. To support this use case, a /// single dispatch queue can be temporarily shared by two or more connections. /// -/// - SchedulingWatchdog.makeSerializedQueueAllowing(database:) creates a +/// - SchedulingWatchdog.makeSerializedQueue(allowingDatabase:) creates a /// dispatch queue that allows one database. /// /// It does so by registering one instance of SchedulingWatchdog as a specific @@ -27,7 +27,7 @@ final class SchedulingWatchdog { allowedDatabases = [database] } - static func makeSerializedQueueAllowing(database: Database) -> DispatchQueue { + static func makeSerializedQueue(allowingDatabase database: Database) -> DispatchQueue { let queue = DispatchQueue(label: "GRDB.SerializedDatabase") let watchdog = SchedulingWatchdog(allowedDatabase: database) queue.setSpecific(key: specificKey, value: watchdog) diff --git a/GRDB/Core/SerializedDatabase.swift b/GRDB/Core/SerializedDatabase.swift index bcc4b2656..2eeab6fd9 100644 --- a/GRDB/Core/SerializedDatabase.swift +++ b/GRDB/Core/SerializedDatabase.swift @@ -35,7 +35,7 @@ final class SerializedDatabase { config.threadingMode = .multiThread db = try Database(path: path, configuration: config, schemaCache: schemaCache) - queue = SchedulingWatchdog.makeSerializedQueueAllowing(database: db) + queue = SchedulingWatchdog.makeSerializedQueue(allowingDatabase: db) try queue.sync { try db.setup() }