File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments