Skip to content

Commit

Permalink
Remove reader lock
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLotU authored and ktoso committed Nov 12, 2020
1 parent 2b6e31e commit e382458
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Sources/CoreMetrics/Metrics.swift
Expand Up @@ -390,14 +390,6 @@ public enum MetricsSystem {
return try self.lock.withWriterLock(body)
}

/// Acquire a reader lock for the duration of the given block.
///
/// - Parameter body: The block to execute while holding the lock.
/// - Returns: The value returned by the block.
public static func withReaderLock<T>(_ body: () throws -> T) rethrows -> T {
return try self.lock.withReaderLock(body)
}

/// `bootstrap` is an one-time configuration function which globally selects the desired metrics backend
/// implementation. `bootstrap` can be called at maximum once in any given program, calling it more than once will
/// lead to undefined behaviour, most likely a crash.
Expand Down

0 comments on commit e382458

Please sign in to comment.