File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ internal class PthreadBlockContextImpl<Argument, Result>: PthreadBlockContext {
49
49
50
50
/// Entry point for `pthread_create` that invokes a block context.
51
51
internal func invokeBlockContext(
52
- _ contextAsVoidPointer: UnsafeMutablePointer < Void > !
52
+ _ contextAsVoidPointer: UnsafeMutablePointer < Void > ?
53
53
) -> UnsafeMutablePointer < Void > ! {
54
54
// The context is passed in +1; we're responsible for releasing it.
55
55
let contextAsOpaque = OpaquePointer ( contextAsVoidPointer!)
@@ -73,7 +73,7 @@ public func _stdlib_pthread_create_block<Argument, Result>(
73
73
74
74
var threadID = _make_pthread_t ( )
75
75
let result = pthread_create ( & threadID, attr,
76
- invokeBlockContext, contextAsVoidPointer)
76
+ { invokeBlockContext ( $0 ) } , contextAsVoidPointer)
77
77
if result == 0 {
78
78
return ( result, threadID)
79
79
} else {
You can’t perform that action at this time.
0 commit comments