Skip to content

Commit

Permalink
Thread's == was public by accident (#819)
Browse files Browse the repository at this point in the history
Motivation:

Thread's equality function was public by accident.

Modifications:

make Thread's equality function internal

Result:

Thread remains internal
  • Loading branch information
weissi authored Feb 14, 2019
1 parent 0ac7e22 commit 7ded801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/NIO/Thread.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public struct ThreadSpecificVariable<T: AnyObject> {
}

extension Thread: Equatable {
public static func ==(lhs: Thread, rhs: Thread) -> Bool {
static func ==(lhs: Thread, rhs: Thread) -> Bool {
return pthread_equal(lhs.pthread, rhs.pthread) != 0
}
}

0 comments on commit 7ded801

Please sign in to comment.