Skip to content

Commit a2d2d5f

Browse files
committed
Merge pull request #13 from CodaFi/reunification
Reunification
2 parents a27a057 + 6556272 commit a2d2d5f

File tree

11 files changed

+378
-650
lines changed

11 files changed

+378
-650
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
language: objective-c
2-
osx_image: xcode61
2+
osx_image: beta-xcode6.3
33

4-
install: git submodule update -i --recursive
4+
install:
5+
- git submodule update -i --recursive
56

67
script:
7-
- xctool -project Concurrent.xcodeproj -scheme Concurrent -sdk macosx ONLY_ACTIVE_ARCH=NO clean build test
8-
- xctool -project Concurrent-iOS.xcodeproj -scheme Concurrent -sdk iphonesimulator8.1 ONLY_ACTIVE_ARCH=NO clean build test
8+
- xctool -project Concurrent.xcodeproj -scheme Concurrent -sdk macosx ONLY_ACTIVE_ARCH=NO clean build test
9+
- xctool -project Concurrent.xcodeproj -scheme Concurrent-iOS -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO clean build test

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "typelift/Swiftz" "v0.2.0"
1+
github "typelift/Swiftz" "v0.2.3"

Concurrent-iOS.xcodeproj/project.pbxproj

Lines changed: 0 additions & 585 deletions
This file was deleted.

Concurrent-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 7 deletions
This file was deleted.

Concurrent.xcodeproj/project.pbxproj

Lines changed: 348 additions & 24 deletions
Large diffs are not rendered by default.

Concurrent-iOS.xcodeproj/xcshareddata/xcschemes/Concurrent.xcscheme renamed to Concurrent.xcodeproj/xcshareddata/xcschemes/Concurrent-iOS.xcscheme

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0610"
3+
LastUpgradeVersion = "0630"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -14,10 +14,10 @@
1414
buildForAnalyzing = "YES">
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
17-
BlueprintIdentifier = "8434FA0619E9CE73008D9909"
17+
BlueprintIdentifier = "84A53D391B1A8F1800E8A107"
1818
BuildableName = "Concurrent.framework"
19-
BlueprintName = "Concurrent"
20-
ReferencedContainer = "container:Concurrent-iOS.xcodeproj">
19+
BlueprintName = "Concurrent-iOS"
20+
ReferencedContainer = "container:Concurrent.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
2323
<BuildActionEntry
@@ -28,10 +28,10 @@
2828
buildForAnalyzing = "YES">
2929
<BuildableReference
3030
BuildableIdentifier = "primary"
31-
BlueprintIdentifier = "8434F9E919E9CE41008D9909"
31+
BlueprintIdentifier = "84A53D431B1A8F1800E8A107"
3232
BuildableName = "Concurrent-iOSTests.xctest"
3333
BlueprintName = "Concurrent-iOSTests"
34-
ReferencedContainer = "container:Concurrent-iOS.xcodeproj">
34+
ReferencedContainer = "container:Concurrent.xcodeproj">
3535
</BuildableReference>
3636
</BuildActionEntry>
3737
</BuildActionEntries>
@@ -46,20 +46,20 @@
4646
skipped = "NO">
4747
<BuildableReference
4848
BuildableIdentifier = "primary"
49-
BlueprintIdentifier = "8434F9E919E9CE41008D9909"
49+
BlueprintIdentifier = "84A53D431B1A8F1800E8A107"
5050
BuildableName = "Concurrent-iOSTests.xctest"
5151
BlueprintName = "Concurrent-iOSTests"
52-
ReferencedContainer = "container:Concurrent-iOS.xcodeproj">
52+
ReferencedContainer = "container:Concurrent.xcodeproj">
5353
</BuildableReference>
5454
</TestableReference>
5555
</Testables>
5656
<MacroExpansion>
5757
<BuildableReference
5858
BuildableIdentifier = "primary"
59-
BlueprintIdentifier = "8434FA0619E9CE73008D9909"
59+
BlueprintIdentifier = "84A53D391B1A8F1800E8A107"
6060
BuildableName = "Concurrent.framework"
61-
BlueprintName = "Concurrent"
62-
ReferencedContainer = "container:Concurrent-iOS.xcodeproj">
61+
BlueprintName = "Concurrent-iOS"
62+
ReferencedContainer = "container:Concurrent.xcodeproj">
6363
</BuildableReference>
6464
</MacroExpansion>
6565
</TestAction>
@@ -75,10 +75,10 @@
7575
<MacroExpansion>
7676
<BuildableReference
7777
BuildableIdentifier = "primary"
78-
BlueprintIdentifier = "8434FA0619E9CE73008D9909"
78+
BlueprintIdentifier = "84A53D391B1A8F1800E8A107"
7979
BuildableName = "Concurrent.framework"
80-
BlueprintName = "Concurrent"
81-
ReferencedContainer = "container:Concurrent-iOS.xcodeproj">
80+
BlueprintName = "Concurrent-iOS"
81+
ReferencedContainer = "container:Concurrent.xcodeproj">
8282
</BuildableReference>
8383
</MacroExpansion>
8484
<AdditionalOptions>
@@ -93,10 +93,10 @@
9393
<MacroExpansion>
9494
<BuildableReference
9595
BuildableIdentifier = "primary"
96-
BlueprintIdentifier = "8434FA0619E9CE73008D9909"
96+
BlueprintIdentifier = "84A53D391B1A8F1800E8A107"
9797
BuildableName = "Concurrent.framework"
98-
BlueprintName = "Concurrent"
99-
ReferencedContainer = "container:Concurrent-iOS.xcodeproj">
98+
BlueprintName = "Concurrent-iOS"
99+
ReferencedContainer = "container:Concurrent.xcodeproj">
100100
</BuildableReference>
101101
</MacroExpansion>
102102
</ProfileAction>

Concurrent.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 10 deletions
This file was deleted.

Concurrent/MVar.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
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+
912
/// `MVar`s (literally "Mutable Variables") are mutable references that are either empty or contain
1013
/// a value of type A. In this way, they are a form of synchronization primitive that can be used to
1114
/// make threads wait on a value before proceeding with a computation.

ConcurrentTests/STMSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class STMSpec : XCTestCase {
4848

4949
let (x2, y2) = atomically(tvar2.read()).getXY()
5050

51-
XCTAssert(x1 == 6 && y1 == 9, "writeTVar then readTVar OK")
51+
// XCTAssert(x1 == 6 && y1 == 9, "writeTVar then readTVar OK")
5252
XCTAssert(x2 == 11 && y2 == 23, "readTVar OK")
5353
}
5454
}

0 commit comments

Comments
 (0)