Skip to content

Commit

Permalink
Merge pull request #2 from LoganWright/05-31
Browse files Browse the repository at this point in the history
updating to 05-31 snapshot
  • Loading branch information
ketzusaka committed Jun 2, 2016
2 parents 9968b40 + 1202a31 commit 952a1fa
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 256 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.build
.DS_Store
Strand.xcodeproj/project.xcworkspace/xcuserdata
Strand.xcodeproj/xcuserdata
*.xcodeproj
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DEVELOPMENT-SNAPSHOT-2016-05-31-a
9 changes: 3 additions & 6 deletions Sources/Strand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ public class Strand {

public init(closure: () -> Void) throws {
let holder = Unmanaged.passRetained(StrandClosure(closure: closure))
#if swift(>=3.0)
let pointer = UnsafeMutablePointer<Void>(OpaquePointer(bitPattern: holder))
#else
let pointer = UnsafeMutablePointer<Void>(holder.toOpaque())
#endif
let pointer = UnsafeMutablePointer<Void>(holder.toOpaque())

#if swift(>=3.0)
#if os(Linux)
Expand Down Expand Up @@ -96,7 +92,8 @@ public class Strand {

#if swift(>=3.0)
private func runner(arg: UnsafeMutablePointer<Void>?) -> UnsafeMutablePointer<Void>? {
let unmanaged = Unmanaged<StrandClosure>.fromOpaque(OpaquePointer(arg!))
guard let arg = arg else { return nil }
let unmanaged = Unmanaged<StrandClosure>.fromOpaque(arg)
unmanaged.takeUnretainedValue().closure()
unmanaged.release()
return nil
Expand Down
205 changes: 0 additions & 205 deletions Strand.xcodeproj/project.pbxproj

This file was deleted.

7 changes: 0 additions & 7 deletions Strand.xcodeproj/project.xcworkspace/contents.xcworkspacedata

This file was deleted.

24 changes: 0 additions & 24 deletions Strand.xcodeproj/xcshareddata/xcschemes/Strand.xcscheme

This file was deleted.

12 changes: 0 additions & 12 deletions Strand.xcodeproj/xcshareddata/xcschemes/xcschememanagement.plist

This file was deleted.

0 comments on commit 952a1fa

Please sign in to comment.