Skip to content

Commit e916b1b

Browse files
committed
Move imports
1 parent c1f9c32 commit e916b1b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Concurrent/MVar.swift

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
// Copyright (c) 2014 TypeLift. All rights reserved.
77
//
88

9-
import typealias Darwin.sys._pthread.pthread_mutex_t
10-
import typealias Darwin.sys._pthread.pthread_cond_t
11-
129
/// `MVar`s (literally "Mutable Variables") are mutable references that are either empty or contain
1310
/// a value of type A. In this way, they are a form of synchronization primitive that can be used to
1411
/// make threads wait on a value before proceeding with a computation.
@@ -220,3 +217,13 @@ public func ==<A : Equatable>(lhs : MVar<A>, rhs : MVar<A>) -> Bool {
220217
}
221218
return lhs.read() == rhs.read()
222219
}
220+
221+
import typealias Darwin.sys._pthread.pthread_mutex_t
222+
import typealias Darwin.sys._pthread.pthread_cond_t
223+
import func Darwin.sys._pthread.pthread_mutex_init
224+
import func Darwin.sys._pthread.pthread_mutex_lock
225+
import func Darwin.sys._pthread.pthread_mutex_unlock
226+
import func Darwin.sys._pthread.pthread_cond_init
227+
import func Darwin.sys._pthread.pthread_cond_wait
228+
import func Darwin.sys._pthread.pthread_cond_signal
229+

0 commit comments

Comments
 (0)