Commit Graph

13 Commits

Author SHA1 Message Date
Philippe Hausler
c4088252d0 [Concurrency] An implementation of system epochs for continuous and suspending clocks (#80409)
This implements
[SE-0473](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0473-clock-epochs.md)
2025-05-05 08:45:24 -07:00
Holly Borla
dfa7b866c7 [Concurrency] Clock.measure should inherit actor isolation. 2024-03-12 22:55:34 -07:00
Allan Shortlidge
ac464f3d15 Revert "Disable some Concurrency tests on freestanding"
This reverts commit a8e79e7430.
2024-01-03 13:59:02 -08:00
Meghana Gupta
a8e79e7430 Disable some Concurrency tests on freestanding 2023-11-01 13:13:55 -07:00
Karoy Lorentey
95a45dbc3d [stdlib] Duration: Fix rare overflow trap in Int128.multipliedFullWidth
Int128.multipliedFullWidth fails to account for an overflow case, which lead `Duration.components` trapping when the duration is a multiple of 512s.

rdar://96362510
2022-07-07 18:34:15 -07:00
Andrew Trick
f62e48343f Permanently disable test/Concurrency/Runtime/clock.swift
There is still an open radar for the author to consider deleting
the test or reimagining it somehow:
rdar:94451729 (Swift CI: Concurrency/Runtime/clock.swift failed
despite increased timeout)
2022-06-27 14:14:18 -07:00
Philippe Hausler
ab25f6f884 Increase expectation slop for clock tests 2022-05-31 11:13:26 -07:00
Yuta Saito
8c69fda522 Revert "Disabling failing test Concurrency/Runtime/clock.swift on cooperative executor"
This reverts commit d44975b2be.
2022-05-08 07:08:13 +00:00
Yuta Saito
d44975b2be Disabling failing test Concurrency/Runtime/clock.swift on cooperative executor
This is XFAILed on cooperative executor due to missing implementations
2022-05-08 02:59:33 +00:00
Evan Wilde
cf4801cfee Disable clock test on backdeploy concurrency lib 2022-05-04 17:10:56 -07:00
Robert Widmann
01e0e0a4ab Gate Clock Runtime Test on Current Runtimes
The back deployment runtime does not contain the symbols necessary
to execute this test. Mark it unsupported.
2022-04-29 10:52:02 -07:00
Philippe Hausler
c891f34b22 Ensure clocks properly respect leeways and use raw time for calculations for continuous clocks (#58396)
* Ensure clocks properly respect leeways and use raw time for calculations for continuous clocks

* slurp up time calcualtions to inline forms

* ensure the tolerance codepaths get tested as well

* Use task local storage for task sources in leeway based calculations

* use comparison assertions for leeway based calculations

* Whitespace cleanup

* Use the CLOCK_MONOTONIC value for linux to be compatible with linux scheduling for dispatch

* remove incorrect paren in macro check for OpenBSD

* Address feedback and remove stray ;
2022-04-27 15:41:11 -07:00
Philippe Hausler
fd9f7140e2 Resolve a structural calculation error with clocks that prevented sleep to properly transmit to dispatch_after (#42518)
* Resolve a structural calculation error with clocks that prevented sleep to properly transmit to dispatch_after

* Remove dispatch dependency
2022-04-21 00:02:22 -07:00