Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[webkitcorepy] Create process-like Thread object
https://bugs.webkit.org/show_bug.cgi?id=245913 <rdar://100642035> Reviewed by Dewei Zhu and David Kilzer. * Tools/Scripts/libraries/webkitcorepy/setup.py: Bump version. * Tools/Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py: Ditto. * Tools/Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py: Import Thread object * Tools/Scripts/libraries/webkitcorepy/webkitcorepy/subprocess_utils.py: (Thread): (Thread.terminated): Check if the current thread has it's termination flag flipped. (Thread.__init__): (Thread.poll): Check if the Thread is running. (Thread.terminate): Set terminate flag. (Thread.kill): Ditto. (Thread.__enter__): Start thread. (Thread.__exit__): Join thread. * Tools/Scripts/libraries/webkitcorepy/webkitcorepy/tests/subprocess_utils_unittest.py: (SubprocessUtils.test_thread): (SubprocessUtils.test_killed_thread): Canonical link: https://commits.webkit.org/255370@main
- Loading branch information
1 parent
b847983
commit dc2cb0f
Showing
4 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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 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 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 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