Skip to content

Commit 3c390df

Browse files
committed
Prefer the pthread types from CDispatch
The types `pthread_mutex_t` and `pthread_cond_t` were defined via both `SwiftGlibc` and `CDistpatch` but a clang fix should merge these decls and consider `CDispatch` as the true origin. rdar://84677782
1 parent dab9598 commit 3c390df

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Sources/Foundation/NSLock.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ public protocol NSLocking {
2222
func unlock()
2323
}
2424

25-
#if canImport(Glibc)
26-
typealias pthread_mutex_t = Glibc.pthread_mutex_t
27-
typealias pthread_cond_t = Glibc.pthread_cond_t
28-
#endif
29-
3025
#if os(Windows)
3126
private typealias _MutexPointer = UnsafeMutablePointer<SRWLOCK>
3227
private typealias _RecursiveMutexPointer = UnsafeMutablePointer<CRITICAL_SECTION>

0 commit comments

Comments
 (0)