Files
swift-nio/Sources
Ole Begemann 81307bd24f Fix Unmanaged.fromOpaque() usage in class Thread (#542)
Motivation:

As discussed with Andrew Trick on the Swift Forums, the additional call
to assumingMemoryBound(to:) is redundant here. Unmanaged.fromOpaque
takes a raw pointer, and p is just that.

See https://forums.swift.org/t/withunsafetypepunnedpointer/14540/9
for the discussion.

Modifications:

Deleted an unnecessary call to assumingMemoryBound(to:). With this
change, we follow the intended usage of Unmanaged more closely.

Result:

No material change. We save one redundant UnsafeRawPointer ->
UnsafePointer<ThreadBox> -> UnsafeRawPointer conversion.
2018-08-01 15:29:13 +01:00
..
2018-06-09 18:18:24 -07:00
2017-12-15 09:50:12 +00:00
2018-03-19 14:45:32 +01:00