Sho Ikeda
1c3909e03d
[Dispatch][gardening] Use Optional.map over flatMap where appropriate
...
The initializers used here are not optional ones, so there is no need to use `flatMap`.
2018-03-27 23:22:25 +09:00
Jordan Rose
3866535e04
[stdlib] Add '@_frozen' to overlay enums that need it
...
That's just ARCamera.TrackingState and DispatchTimeoutResult.
Verified with the framework owners at Apple.
2018-03-20 14:53:55 -07:00
Sho Ikeda
70ab828d9f
[gardening][Dispatch] Prefer macOS over OSX for @available
2018-03-16 13:30:01 +09:00
Sho Ikeda
f956609312
[gardening][Overlay] Prefer macOS over OSX for #available
2018-03-14 14:06:31 +09:00
Sho Ikeda
1fbc03005e
[gardening][stdlib/public] Move operators into types
2018-03-11 12:14:56 +09:00
Jordan Rose
6a1161bd93
Tweak _SwiftDispatchOverlayShims for use by swift-corelibs-libdispatch. ( #6033 )
2018-02-22 09:31:16 -08:00
Ben Cohen
9ee856f386
[stdlib][WIP] Eliminate (Closed)CountableRange using conditional conformance ( #13342 )
...
* Make Range conditionally a Collection
* Convert ClosedRange to conditionally a collection
* De-gyb Range/ClosedRange, refactoring some methods.
* Remove use of Countable{Closed}Range from stdlib
* Remove Countable use from Foundation
* Fix test errors and warnings resulting from Range/CountableRange collapse
* fix prespecialize test for new mangling
* Update CoreAudio use of CountableRange
* Update SwiftSyntax use of CountableRange
* Restore ClosedRange.Index: Hashable conformance
* Move fixed typechecker slowness test for array-of-ranges from slow to fast, yay
* Apply Doug's patch to loosen test to just check for error
2018-02-01 20:59:28 -08:00
Ben Cohen
ca6c6b1d36
[stdlib] Cleanup DefaultIndices, delete dead code ( #13952 )
...
* Remove a bunch of Default(Bidirectional|RandomAccess)Indices usage from stdlib and test
* Remove some DefaultRandomAccessIndices and IndexDistance usage from Foundation
* Remove no-longer-used internal type in Existentials.swift
* Get rid of indicesForTraversal
2018-01-15 13:48:08 -08:00
Ben Cohen
85d190cd7d
[stdlib] Replace various uses of BlahSlice with Slice to reduce warnings ( #13263 )
...
* Kill the slice variants from the gybbed collection test types
* Handful more SDK instances
* Fix SequencesCollections.swift.gyb
2017-12-05 19:09:56 -08:00
Kim Topley
1da4b04d99
Fixes overflow trap when creating DispatchTime objects with large uptimeNanoseconds values and re-enables the tests that failed.
...
Adds some additional tests.
2017-10-16 07:09:05 -07:00
Doug Gregor
797df6e8d7
Eliminate the _*Indexable protocols.
...
The various _*Indexable protocols only exist to work around the lack of
recursive protocol constraints. Eliminate all of the *_Indexable protocols,
collapsing their requirements into the corresponding Collection protocol
(e.g., _MutableIndexable —> Collection).
This introduces a number of extraneous requirements into the various
Collection protocols to work around bugs in associated type
inference. Specifically, to work around the lack of "global" inference
of associated type witnesses. These hacks were implicitly present in
the *Indexable protocols; I've made marked them as ABI FIXMEs here so
we can remove them when associated type inference improves.
Fixes rdar://problem/21935030 and a number of ABI FIXMEs in the library.
2017-10-01 15:08:23 -07:00
ktopley-apple
0dc62017a1
Merge pull request #11927 from ktopley-apple/dispatch-time-overflows
...
Fix overflow traps in DispatchTime/DispatchWallTime/DispatchTimeInterval
2017-09-20 13:27:35 -07:00
Kim Topley
c5af2799c1
Fix overflow traps in DispatchTime/DispatchWallTime/DispatchTimeInterval.
...
rdar://problem/32678302
2017-09-20 12:16:05 -07:00
Kim Topley
9b96c0eb36
Change the fix-up for dispatch_apply() to refer to the correct replacement. Also change from "renamed" to "message" because concurrentPerform(iterations:execute:) has different arguments than dispatch_apply(), so Xcode does not handle the conversion properly.
2017-09-05 15:00:16 -07:00
Kim Topley
6194f37e1a
Fix warnings in DispatchQueue.sync() implementation when using a compiler with SE-0176 support.
2017-06-30 08:45:15 -07:00
Max Moiseev
eaf20b23ba
[overlay] Rename scheduleOneShot and scheduleRepeating
...
rdar://29587696
2017-06-26 15:38:21 -07:00
Mishal Shah
c5ff1f2cac
Update master to build with Xcode 9 beta 1, OS X 10.13, iOS 11, tvOS 11, and watchOS 4 SDKs.
2017-06-14 16:20:35 -07:00
Dave Abrahams
72f5e7c0c2
[stdlib] Eliminate _Element
2017-05-22 16:17:58 -07:00
Max Moiseev
b9fb3badc8
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-03-22 12:30:24 -07:00
ktopley-apple
2e5e1d8ee5
Makes the DispatchIO initializer that accepts a path failable, reflecting the fact that a relative or non-existent path is invalid. ( #8173 )
...
(Radar 28564226)
2017-03-20 15:32:22 -07:00
Doug Coleman
8c2bd5ae23
cmake: Initial standalone overlays builds.
...
./utils/build-overlay AVFoundation OSX macosx
rdar://problem/28707246
2017-03-14 12:51:42 -07:00
ktopley-apple
56081a24c3
Add support for UnsafeRawBufferPointer to DispatchData ( #8004 )
...
* Add support for UnsafeRawBufferPointer to DispatchData
(Radar 28503167)
* Review comments.
2017-03-10 13:59:44 -08:00
Max Moiseev
835b8809d2
Merge branch 'master' into new-integer-protocols
2017-03-07 16:18:54 -08:00
Kim Topley
fe8d8bb88a
Fix the DispatchTime.init(uptimeNanoseconds:) initializer to convert its argument to Mach absolute time instead of treating it as Mach absolute time.
...
(Radar 29660448)
2017-02-13 12:24:38 -08:00
Kim Topley
5229d1a777
Revert "Fix the DispatchTime.init(uptimeNanoseconds:) initializer to convert its argument to Mach absolute time instead of treating it as Mach absolute time."
...
This reverts commit 1377cae2b9 .
2017-02-13 12:22:06 -08:00
Kim Topley
1377cae2b9
Fix the DispatchTime.init(uptimeNanoseconds:) initializer to convert its argument to Mach absolute time instead of treating it as Mach absolute time.
...
(Radar 29660448)
2017-02-13 11:19:40 -08:00
swift-ci
fd6b9fe0ec
Merge pull request #7338 from ktopley-apple/dispatch-time-nanos
2017-02-10 13:29:49 -08:00
ktopley-apple
0cb1561035
Adding documentation to clarify the result of DispatchTime(uptimeNanoseconds: 0) ( #7342 )
...
(Radar 28814085)
(SR-2807)
2017-02-10 12:37:57 -08:00
Kim Topley
65032a6898
DispatchTime.uptimeNanoseconds returns incorrect value on some platforms.
...
(Radar 30332506)
2017-02-08 10:34:08 -08:00
Maxim Moiseev
8b95cc48de
[stdlib] Fixing compilation warnings ( #7314 )
...
<rdar://problem/30320630>
2017-02-08 10:07:49 -08:00
ktopley-apple
4854530db0
Fixes crash when DispatchData is created from an UnsafeBufferPointer<Uint8> with a nil address. ( #7194 )
...
Radar 29337927
2017-02-02 09:33:45 -08:00
Max Moiseev
0e7863129c
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-30 16:51:16 -08:00
Kim Topley
7d9ed86d8c
Fixes handling of range indices in DispatchData.copyBytes() and adds tests for the copyBytes() method (Radar 29005050)
2017-01-26 09:13:25 -08:00
Max Moiseev
b5ab7263c1
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-23 11:00:33 -08:00
Maxim Moiseev
89840c738a
[dispatch] Fix + and - operations on DispatchTime and DispatchWallTime ( #6961 )
...
... for the cases where `seconds` parameter is NaN or infinite.
Fixes <rdar://problem/29764171>
2017-01-20 21:44:47 -08:00
NachoSoto
a12e739fb8
Fix the fixits for dispatch_async and dispatch_group_async
...
They erroneously suggested `DispatchQueue.asynchronously`, but it's actually `DispatchQueue.async`.
2017-01-20 15:05:15 -08:00
Max Moiseev
d128ed42b0
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-19 14:16:32 -08:00
Slava Pestov
5accebf556
Merge pull request #5344 from karwa/clearspecific
...
[Overlay/Dispatch]: Change DispatchQueue.setSpecific to take an optional
2017-01-18 15:59:45 -08:00
Max Moiseev
27889c6376
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-06 15:54:44 -08:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
JP Simard
65688bdc39
[gardening] replace unused closure parameters with '_' in stdlib source ( #6522 )
...
* replace unused closure parameters with '_' in stdlib source
* fold some _ closure arguments into line above
* fold more _ closure arguments into line above
2017-01-03 20:10:41 -07:00
JP Simard
ea5b665afa
prefer '-> Void' over '-> ()'
...
Apple and the Swift community has settled on this style:
https://devforums.apple.com/message/1133616#1133616
> FWIW, we've recently decided to standardize on () -> Void
> (generally, () for parameters and Void for return types) across all of our
> documentation.
2016-12-31 17:55:19 -08:00
Max Moiseev
356c15cb4a
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2016-12-06 10:35:27 -08:00
Jordan Rose
7d61a5e6a2
[SDK] Use an extra shims header to remove _silgen_name from Dispatch.
...
We still have a bunch of redeclarations of Dispatch functions to avoid
the automatic bridging of dispatch_data_t and dispatch_block_t, but
mostly this is a vast reduction in complexity (and increase in safety).
2016-12-01 16:06:15 -08:00
Max Moiseev
70b2343626
Merge branch 'master' into new-integer-protocols
2016-11-28 15:25:01 -08:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
Max Moiseev
953d919a22
Merge branch 'master' into new-integer-protocols
2016-11-16 14:46:31 -08:00
Doug Coleman
692bc1c031
cmake: Allow requiring minimum versions using sdk-os-version triples on
...
Darwin.
Example:
--darwin-sdk-deployment-targets=fookit-ios-8.0;barkit-tvos-9.2
2016-11-15 16:43:37 -08:00
Max Moiseev
76e0a99a37
Merge branch 'master' into new-integer-protocols
2016-10-31 09:29:19 -07:00
practicalswift
2024316e38
[gardening] Remove accidental trailing whitespace (" " and "\t")
2016-10-30 10:59:02 +01:00