-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-21302: Add Waitable timer implementation for time.sleep() in Windows #28341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
55faeb6
clock_nanosleep() implementation for time.sleep()
Livius90 c7bae3b
Follow PEP 7 rules in time.sleep()
Livius90 b3a5c5f
Adjust braces to PEP 7
Livius90 3e07f39
clock_nanosleep check placed after clock_settime
Livius90 e06ba84
Fix EINTR issue for clock_nanosleep()
Livius90 6e6d4a3
📜🤖 Added by blurb_it.
blurb-it[bot] 238f073
nanosleep() is available for Unix systems like OSX, FreeBSD
Livius90 b5a5c6e
Update news rst file
Livius90 d064255
replace select() with nanosleep()
Livius90 b70f187
📜🤖 Added by blurb_it.
blurb-it[bot] 6ad7c14
Fix test_eintr issue for macOS
Livius90 74c45e1
Remove news rst and regenerate
Livius90 5988222
📜🤖 Added by blurb_it.
blurb-it[bot] 129b0a0
Use waitable timer from Win32 for time.sleep() in Windows
Livius90 d89e13b
Finalized waitable timer for time.sleep() in Windows
Livius90 47249f5
📜🤖 Added by blurb_it.
blurb-it[bot] 0bf8330
Fix macOS build issue
Livius90 085cbed
📜🤖 Added by blurb_it.
blurb-it[bot] 2242638
Final optimization in Waitable timer object implementation
Livius90 db7851b
📜🤖 Added by blurb_it.
blurb-it[bot] f7387e8
revert to original
Livius90 a35b0b4
remove news
Livius90 3abf812
add clock_nanosleep() only
Livius90 4cbfde2
📜🤖 Added by blurb_it.
blurb-it[bot] d99c06e
Update Misc/NEWS.d/next/Library/2021-09-10-00-24-08.bpo-21302.XS_frc.rst
Livius90 117dc62
timeout_abs renaming
Livius90 92061f3
Simplified HAVE_CLOCK_NANOSLEEP macro blocks
Livius90 f045047
remake news
Livius90 24f9975
📜🤖 Added by blurb_it.
blurb-it[bot] 34e3883
Fix err checking
Livius90 fec634f
📜🤖 Added by blurb_it.
blurb-it[bot] 8022062
revert changes
Livius90 4685ec7
get_monotonic() and secs re-calculation are useless for clock_nanosle…
Livius90 0ad19e0
📜🤖 Added by blurb_it.
blurb-it[bot] 0839d0d
merge errno in HAVE_CLOCK_NANOSLEEP
Livius90 39cff8f
remake news rst
Livius90 87d5712
📜🤖 Added by blurb_it.
blurb-it[bot] 56cb8e1
Try to fix Address sanitizer test issue
Livius90 8ec03be
📜🤖 Added by blurb_it.
blurb-it[bot] b1ccdba
#2 Try to fix Address sanitizer test issue
Livius90 c8372c8
📜🤖 Added by blurb_it.
blurb-it[bot] 1cf2205
remake news rst
Livius90 1e725da
📜🤖 Added by blurb_it.
blurb-it[bot] 3566c59
re-make news rst
Livius90 278aaa2
📜🤖 Added by blurb_it.
blurb-it[bot] beaecab
Merge branch 'python:main' into bpo-21302
Livius90 df7e4c9
Add Waitable timer implmentation in time.sleep() for Windows
Livius90 79a06c4
📜🤖 Added by blurb_it.
blurb-it[bot] 6fb2c1d
Revert "📜🤖 Added by blurb_it."
Livius90 41fe5d8
Fix timer handle closing, simplify ifdef blocks
Livius90 6fc19ad
Merge branch 'python:main' into bpo-21302
Livius90 ac8ab07
Add _PyTime_As100Nanoseconds()
Livius90 b79ce48
Fix test_eintr failed issue in macOS
Livius90 7a3fbc2
📜🤖 Added by blurb_it.
blurb-it[bot] 4e7c4eb
time.sleep() sleep again if SIGINT does not raise an exception
Livius90 ab17401
use WaitForMultipleObjectsEx()
Livius90 d2eb0fc
Some code refactoring and finalizing
Livius90 aad2c31
Fulfilling requests of last review
Livius90 0daf080
Update news rst
Livius90 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Library/2021-09-15-23-49-21.bpo-21302.KTsR8i.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
In Windows operating system, :func:`time.sleep` now uses the ``waitable timer`` object, which allows to sleep for an interval absolute time. Desired sleep time can be set in 100 nsecs resolution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.