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
practicalswift
f44686d825
[gardening] Fix trailing whitespace in *.cfg.in, *.html, *.mm and *.sil files
2016-10-29 14:06:43 +02:00
Max Moiseev
d1cc46d7ce
Fixing Dispatch tests
2016-10-24 11:40:03 -07:00
SpringsUp
2ae2074de3
[Overlay/Dispatch]: Change DispatchQueue.setSpecific to take an optional
...
for its value
2016-10-18 13:57:02 +02:00
Kevin Ballard
301510e9d4
Fix dispatch time comparisons ( #5078 )
...
* [Dispatch] Don't crash when comparing DispatchWallTimes with <
* [Dispatch] Make comparisons with distantFuture work as expected
2016-10-13 11:32:24 -07:00
Doug Coleman
2747d1eed8
Overlays: Fix tool not to find os as a dependency unless it depends on
...
os/activity.h or os/log.h. Update cmake files again, hardcoding a Darwin
dependency. The script does not notice that Foundation depends on
CoreGraphics, so add that manually.
Also found that MapKit is supported on WATCHOS but we didn't have dependencies
for that.
Favor one line per supported SDK instead of catch-all dependency lines.
Distinguish from SDKs which have no dependencies vs SDKs which are
unsupported on a particular platform by printing `unsupported` to the
console and remove the line in the cmake file because it should
not exist anyway.
This full cleanup was not done before because of circularity detected by the
util, which has since been fixed.
Support directories with spaces.
2016-09-28 10:28:02 -07:00
practicalswift
fa7fbdb8b0
[gardening] Remove redundant nil-initialization of optional variable
...
From the Swift documentation:
"If you define an optional variable without providing a default value,
the variable is automatically set to nil for you."
2016-09-18 07:40:07 +02:00
Michael Ilseman
b7c9eddd11
[noescape by default] drop @noescape from stdlib
2016-08-04 16:09:01 -07:00
Michael Gottesman
06a70d3942
[cmake] Add cmake support for only applying tsan to the swift stdlib/runtime.
2016-08-03 17:53:57 -07:00
Kevin Ballard
2530957bc6
Use shims for all calls to Dispatch APIs that take blocks
...
This ensures that blocks that come from `DispatchWorkItem`s will
function correctly.
The only exception is __dispatch_barrier_sync() as the block passed to
that call is not `@convention(block)` so it doesn't matter.
Fixes SR-2246.
2016-08-01 17:08:14 -07:00
Kevin Ballard
6fe9b13f12
Add fast path for queue.async(flags: .barrier)
...
Fixes SR-2248.
2016-08-01 14:58:30 -07:00
Rintaro Ishizaki
58676616ea
[Dispatch] .size to .stride
2016-07-30 18:24:06 +09:00
Doug Gregor
b9363fe6bd
[SE-0111] Enable SE-0111 by default.
2016-07-29 17:28:24 -07:00
Dmitri Gribenko
99dffd7682
Merge pull request #3854 from rintaro/SE-0101-memorylayout
...
[SE-0101] Implement: Reconfiguring sizeof and related functions into a unified MemoryLayout struct - Part 1
2016-07-29 15:56:27 -07:00
Doug Gregor
8219d4f42b
Merge pull request #3853 from milseman/noescape_by_default
...
SE-0103 Noescape by default
2016-07-29 15:27:52 -07:00
Dmitri Gribenko
621d3b7c66
Merge pull request #3827 from mwwa/libdispatch-data-leak
...
[libdispatch-data-leak] DisaptchData never calls destructor
2016-07-29 14:58:37 -07:00
Michael Ilseman
ccda8f33d1
[noescape by default] Proliferate @escaping
...
Adds an explicit @escaping throughout the standard library, validation
test suite, and tests. This will be necessary as soon as noescape is
the default for closure parameters.
2016-07-29 13:48:07 -07:00
Devin Coughlin
8cb358195d
Merge pull request #3797 from devincoughlin/dispatch_deprecation
...
[libdispatch] Fix deprecation annotations for macOS, watchOS.
2016-07-29 11:42:06 -07:00
Rintaro Ishizaki
06603c10bc
[SE-0101] .size to .stride
2016-07-30 03:11:46 +09:00