[webkit-changes] [WebKit/WebKit] dc2cb0: [webkitcorepy] Create process-like Thread object

Jonathan Bedard noreply at github.com
Mon Oct 10 16:56:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dc2cb0fa4c7ff63091e623a7c48757a3db47a006
      https://github.com/WebKit/WebKit/commit/dc2cb0fa4c7ff63091e623a7c48757a3db47a006
  Author: Jonathan Bedard <jbedard at apple.com>
  Date:   2022-10-10 (Mon, 10 Oct 2022)

  Changed paths:
    M Tools/Scripts/libraries/webkitcorepy/setup.py
    M Tools/Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py
    M Tools/Scripts/libraries/webkitcorepy/webkitcorepy/subprocess_utils.py
    M Tools/Scripts/libraries/webkitcorepy/webkitcorepy/tests/subprocess_utils_unittest.py

  Log Message:
  -----------
  [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




More information about the webkit-changes mailing list